Interface SharedResource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SharedResource.Builder,,SharedResource> SdkBuilder<SharedResource.Builder,,SharedResource> SdkPojo
- Enclosing class:
SharedResource
@Mutable
@NotThreadSafe
public static interface SharedResource.Builder
extends SdkPojo, CopyableBuilder<SharedResource.Builder,SharedResource>
-
Method Summary
Modifier and TypeMethodDescriptionThe DNS names accessible by the broker.dnsNames(Collection<String> dnsNames) The DNS names accessible by the broker.default SharedResource.Buildererror(Consumer<SharedResourceError.Builder> error) Information on the error encountered by the resource.error(SharedResourceError error) Information on the error encountered by the resource.resourceArn(String resourceArn) The ARN of the shared resource.resourceShareArns(String... resourceShareArns) The resource share ARNs to which the resource belongs.resourceShareArns(Collection<String> resourceShareArns) The resource share ARNs to which the resource belongs.The status of the shared resource.status(SharedResourceStatus status) The status of the shared resource.The type of shared resource.type(SharedResourceType type) The type of shared resource.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
-
dnsNames
The DNS names accessible by the broker.
- Parameters:
dnsNames- The DNS names accessible by the broker.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsNames
The DNS names accessible by the broker.
- Parameters:
dnsNames- The DNS names accessible by the broker.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Information on the error encountered by the resource.
This is a convenience method that creates an instance of theSharedResourceError.Builderavoiding the need to create one manually viaSharedResourceError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(SharedResourceError).- Parameters:
error- a consumer that will call methods onSharedResourceError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceArn
The ARN of the shared resource.
- Parameters:
resourceArn- The ARN of the shared resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the shared resource.
- Parameters:
status- The status of the shared resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of shared resource.
- Parameters:
type- The type of shared resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-