Interface Topic.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Topic.Builder,
,Topic> SdkBuilder<Topic.Builder,
,Topic> SdkPojo
- Enclosing class:
Topic
@Mutable
@NotThreadSafe
public static interface Topic.Builder
extends SdkPojo, CopyableBuilder<Topic.Builder,Topic>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Topic.Builder
resource
(Consumer<NotificationResource.Builder> resource) Sets the value of the Resource property for this object.resource
(NotificationResource resource) Sets the value of the Resource property for this object.The role of the resource mentioned in a notification.role
(NotificationRole role) The role of the resource mentioned in a notification.The subject of the resource mentioned in a notification.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, sdkFieldNameToField, sdkFields
-
Method Details
-
resource
Sets the value of the Resource property for this object.- Parameters:
resource
- The new value for the Resource property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
Sets the value of the Resource property for this object. This is a convenience method that creates an instance of theNotificationResource.Builder
avoiding the need to create one manually viaNotificationResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(NotificationResource)
.- Parameters:
resource
- a consumer that will call methods onNotificationResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
The role of the resource mentioned in a notification.
- Parameters:
role
- The role of the resource mentioned in a notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
role
The role of the resource mentioned in a notification.
- Parameters:
role
- The role of the resource mentioned in a notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
subject
The subject of the resource mentioned in a notification.
- Parameters:
subject
- The subject of the resource mentioned in a notification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-