Interface ListenerDescription.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ListenerDescription.Builder,,ListenerDescription> SdkBuilder<ListenerDescription.Builder,,ListenerDescription> SdkPojo
- Enclosing class:
- ListenerDescription
@Mutable
@NotThreadSafe
public static interface ListenerDescription.Builder
extends SdkPojo, CopyableBuilder<ListenerDescription.Builder,ListenerDescription>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListenerDescription.Builderlistener(Consumer<Listener.Builder> listener) The listener.The listener.policyNames(String... policyNames) The policies.policyNames(Collection<String> policyNames) The policies.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
listener
The listener.
- Parameters:
listener- The listener.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listener
The listener.
This is a convenience method that creates an instance of theListener.Builderavoiding the need to create one manually viaListener.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolistener(Listener).- Parameters:
listener- a consumer that will call methods onListener.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policyNames
The policies. If there are no policies enabled, the list is empty.
- Parameters:
policyNames- The policies. If there are no policies enabled, the list is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyNames
The policies. If there are no policies enabled, the list is empty.
- Parameters:
policyNames- The policies. If there are no policies enabled, the list is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-