Interface UpdateCrossAccountAttachmentRequest.Builder

    • Method Detail

      • attachmentArn

        UpdateCrossAccountAttachmentRequest.Builder attachmentArn​(String 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

        UpdateCrossAccountAttachmentRequest.Builder name​(String 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

        UpdateCrossAccountAttachmentRequest.Builder addPrincipals​(Collection<String> 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

        UpdateCrossAccountAttachmentRequest.Builder addPrincipals​(String... 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

        UpdateCrossAccountAttachmentRequest.Builder removePrincipals​(Collection<String> 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

        UpdateCrossAccountAttachmentRequest.Builder removePrincipals​(String... 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

        UpdateCrossAccountAttachmentRequest.Builder addResources​(Collection<Resource> 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​(Resource... 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 the Resource.Builder avoiding the need to create one manually via Resource.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #addResources(List).

        Parameters:
        addResources - a consumer that will call methods on Resource.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #addResources(java.util.Collection)
      • removeResources

        UpdateCrossAccountAttachmentRequest.Builder removeResources​(Collection<Resource> 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​(Resource... 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 the Resource.Builder avoiding the need to create one manually via Resource.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #removeResources(List).

        Parameters:
        removeResources - a consumer that will call methods on Resource.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #removeResources(java.util.Collection)