Interface CreateAccessGrantsLocationRequest.Builder

    • Method Detail

      • accountId

        CreateAccessGrantsLocationRequest.Builder accountId​(String accountId)

        The ID of the Amazon Web Services account that is making this request.

        Parameters:
        accountId - The ID of the Amazon Web Services account that is making this request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • locationScope

        CreateAccessGrantsLocationRequest.Builder locationScope​(String locationScope)

        The S3 path to the location that you are registering. The location scope can be the default S3 location s3://, the S3 path to a bucket s3://<bucket>, or the S3 path to a bucket and prefix s3://<bucket>/<prefix>. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the engineering/ prefix or object key names that start with the marketing/campaigns/ prefix.

        Parameters:
        locationScope - The S3 path to the location that you are registering. The location scope can be the default S3 location s3://, the S3 path to a bucket s3://<bucket>, or the S3 path to a bucket and prefix s3://<bucket>/<prefix>. A prefix in S3 is a string of characters at the beginning of an object key name used to organize the objects that you store in your S3 buckets. For example, object key names that start with the engineering/ prefix or object key names that start with the marketing/campaigns/ prefix.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • iamRoleArn

        CreateAccessGrantsLocationRequest.Builder iamRoleArn​(String iamRoleArn)

        The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.

        Parameters:
        iamRoleArn - The Amazon Resource Name (ARN) of the IAM role for the registered location. S3 Access Grants assumes this role to manage access to the registered location.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateAccessGrantsLocationRequest.Builder tags​(Collection<Tag> tags)

        The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

        Parameters:
        tags - The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateAccessGrantsLocationRequest.Builder tags​(Tag... tags)

        The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

        Parameters:
        tags - The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateAccessGrantsLocationRequest.Builder tags​(Consumer<Tag.Builder>... tags)

        The Amazon Web Services resource tags that you are adding to the S3 Access Grants location. Each tag is a label consisting of a user-defined key and value. Tags can help you manage, identify, organize, search for, and filter resources.

        This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

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

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