Interface Topic.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Topic.Builder,Topic>,SdkBuilder<Topic.Builder,Topic>,SdkPojo
- Enclosing class:
- Topic
public static interface Topic.Builder extends SdkPojo, CopyableBuilder<Topic.Builder,Topic>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Topic.Builderresource(Consumer<NotificationResource.Builder> resource)Sets the value of the Resource property for this object.Topic.Builderresource(NotificationResource resource)Sets the value of the Resource property for this object.Topic.Builderrole(String role)The role of the resource mentioned in a notification.Topic.Builderrole(NotificationRole role)The role of the resource mentioned in a notification.Topic.Buildersubject(String subject)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, sdkFields
-
-
-
-
Method Detail
-
resource
Topic.Builder resource(NotificationResource 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
default Topic.Builder resource(Consumer<NotificationResource.Builder> resource)
Sets the value of the Resource property for this object. This is a convenience method that creates an instance of theNotificationResource.Builderavoiding the need to create one manually viaNotificationResource.builder().When the
Consumercompletes,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:
resource(NotificationResource)
-
role
Topic.Builder role(String 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:
NotificationRole,NotificationRole
-
role
Topic.Builder role(NotificationRole 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:
NotificationRole,NotificationRole
-
subject
Topic.Builder subject(String 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.
-
-