Interface ListenerDescription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ListenerDescription.Builder,
,ListenerDescription> SdkBuilder<ListenerDescription.Builder,
,ListenerDescription> SdkPojo
- Enclosing class:
ListenerDescription
public static interface ListenerDescription.Builder
extends SdkPojo, CopyableBuilder<ListenerDescription.Builder,ListenerDescription>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ListenerDescription.Builder
listener
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builder
avoiding the need to create one manually viaListener.builder()
.When the
Consumer
completes,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.
-