Interface UpdateCrossAccountAttachmentRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateCrossAccountAttachmentRequest.Builder,
,UpdateCrossAccountAttachmentRequest> GlobalAcceleratorRequest.Builder
,SdkBuilder<UpdateCrossAccountAttachmentRequest.Builder,
,UpdateCrossAccountAttachmentRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateCrossAccountAttachmentRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddPrincipals
(String... addPrincipals) The principals to add to the cross-account attachment.addPrincipals
(Collection<String> addPrincipals) The principals to add to the cross-account attachment.addResources
(Collection<Resource> addResources) The resources to add to the cross-account attachment.addResources
(Consumer<Resource.Builder>... addResources) The resources to add to the cross-account attachment.addResources
(Resource... addResources) The resources to add to the cross-account attachment.attachmentArn
(String attachmentArn) The Amazon Resource Name (ARN) of the cross-account attachment to update.The name of the cross-account attachment.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.removePrincipals
(String... removePrincipals) The principals to remove from the cross-account attachment.removePrincipals
(Collection<String> removePrincipals) The principals to remove from the cross-account attachment.removeResources
(Collection<Resource> removeResources) The resources to remove from the cross-account attachment.removeResources
(Consumer<Resource.Builder>... removeResources) The resources to remove from the cross-account attachment.removeResources
(Resource... removeResources) The resources to remove from the cross-account attachment.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.globalaccelerator.model.GlobalAcceleratorRequest.Builder
build
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
-
attachmentArn
The Amazon Resource Name (ARN) of the cross-account attachment to update.
- Parameters:
attachmentArn
- The Amazon Resource Name (ARN) of the cross-account attachment to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the cross-account attachment.
- Parameters:
name
- The name of the cross-account attachment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addPrincipals
The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Parameters:
addPrincipals
- The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addPrincipals
The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.
To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Parameters:
addPrincipals
- The principals to add to the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.To add more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removePrincipals
The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Parameters:
removePrincipals
- The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removePrincipals
The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.
To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Parameters:
removePrincipals
- The principals to remove from the cross-account attachment. A principal is an account or the Amazon Resource Name (ARN) of an accelerator that the attachment gives permission to work with resources from another account. The resources are also listed in the attachment.To remove more than one principal, separate the account numbers or accelerator ARNs, or both, with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addResources
The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
- Parameters:
addResources
- The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.To add more than one resource, separate the resource ARNs with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addResources
The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
- Parameters:
addResources
- The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.To add more than one resource, separate the resource ARNs with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addResources
UpdateCrossAccountAttachmentRequest.Builder addResources(Consumer<Resource.Builder>... addResources) The resources to add to the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To add more than one resource, separate the resource ARNs with commas.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaddResources(List<Resource>)
.- Parameters:
addResources
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
removeResources
The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To remove more than one resource, separate the resource ARNs with commas.
- Parameters:
removeResources
- The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.To remove more than one resource, separate the resource ARNs with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeResources
The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To remove more than one resource, separate the resource ARNs with commas.
- Parameters:
removeResources
- The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.To remove more than one resource, separate the resource ARNs with commas.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeResources
UpdateCrossAccountAttachmentRequest.Builder removeResources(Consumer<Resource.Builder>... removeResources) The resources to remove from the cross-account attachment. A resource listed in a cross-account attachment can be used with an accelerator by the principals that are listed in the attachment.
To remove more than one resource, separate the resource ARNs with commas.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremoveResources(List<Resource>)
.- Parameters:
removeResources
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateCrossAccountAttachmentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateCrossAccountAttachmentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-