Interface Attachment.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Attachment.Builder,Attachment>, SdkBuilder<Attachment.Builder,Attachment>, SdkPojo
Enclosing class:
Attachment

public static interface Attachment.Builder extends SdkPojo, CopyableBuilder<Attachment.Builder,Attachment>
  • Method Details

    • attachmentArn

      Attachment.Builder attachmentArn(String attachmentArn)

      The Amazon Resource Name (ARN) of the cross-account attachment.

      Parameters:
      attachmentArn - The Amazon Resource Name (ARN) of the cross-account attachment.
      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.
    • principals

      Attachment.Builder principals(Collection<String> principals)

      The principals included in the cross-account attachment.

      Parameters:
      principals - The principals included in the cross-account attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principals

      Attachment.Builder principals(String... principals)

      The principals included in the cross-account attachment.

      Parameters:
      principals - The principals included in the cross-account attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Attachment.Builder resources(Collection<Resource> resources)

      The resources included in the cross-account attachment.

      Parameters:
      resources - The resources included in the cross-account attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Attachment.Builder resources(Resource... resources)

      The resources included in the cross-account attachment.

      Parameters:
      resources - The resources included in the cross-account attachment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resources

      Attachment.Builder resources(Consumer<Resource.Builder>... resources)

      The resources included in the cross-account attachment.

      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 resources(List<Resource>).

      Parameters:
      resources - 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:
    • lastModifiedTime

      Attachment.Builder lastModifiedTime(Instant lastModifiedTime)

      The date and time that the cross-account attachment was last modified.

      Parameters:
      lastModifiedTime - The date and time that the cross-account attachment was last modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdTime

      Attachment.Builder createdTime(Instant createdTime)

      The date and time that the cross-account attachment was created.

      Parameters:
      createdTime - The date and time that the cross-account attachment was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.