Interface CreateGrantRequest.Builder

  • Method Details

    • clientToken

      CreateGrantRequest.Builder clientToken(String clientToken)

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

      Parameters:
      clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grantName

      CreateGrantRequest.Builder grantName(String grantName)

      Grant name.

      Parameters:
      grantName - Grant name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • licenseArn

      CreateGrantRequest.Builder licenseArn(String licenseArn)

      Amazon Resource Name (ARN) of the license.

      Parameters:
      licenseArn - Amazon Resource Name (ARN) of the license.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principals

      CreateGrantRequest.Builder principals(Collection<String> principals)

      The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):

      • An Amazon Web Services account, which includes only the account specified.

      • An organizational unit (OU), which includes all accounts in the OU.

      • An organization, which will include all accounts across your organization.

      Parameters:
      principals - The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):

      • An Amazon Web Services account, which includes only the account specified.

      • An organizational unit (OU), which includes all accounts in the OU.

      • An organization, which will include all accounts across your organization.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principals

      CreateGrantRequest.Builder principals(String... principals)

      The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):

      • An Amazon Web Services account, which includes only the account specified.

      • An organizational unit (OU), which includes all accounts in the OU.

      • An organization, which will include all accounts across your organization.

      Parameters:
      principals - The grant principals. You can specify one of the following as an Amazon Resource Name (ARN):

      • An Amazon Web Services account, which includes only the account specified.

      • An organizational unit (OU), which includes all accounts in the OU.

      • An organization, which will include all accounts across your organization.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • homeRegion

      CreateGrantRequest.Builder homeRegion(String homeRegion)

      Home Region of the grant.

      Parameters:
      homeRegion - Home Region of the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedOperationsWithStrings

      CreateGrantRequest.Builder allowedOperationsWithStrings(Collection<String> allowedOperations)

      Allowed operations for the grant.

      Parameters:
      allowedOperations - Allowed operations for the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedOperationsWithStrings

      CreateGrantRequest.Builder allowedOperationsWithStrings(String... allowedOperations)

      Allowed operations for the grant.

      Parameters:
      allowedOperations - Allowed operations for the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedOperations

      CreateGrantRequest.Builder allowedOperations(Collection<AllowedOperation> allowedOperations)

      Allowed operations for the grant.

      Parameters:
      allowedOperations - Allowed operations for the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedOperations

      CreateGrantRequest.Builder allowedOperations(AllowedOperation... allowedOperations)

      Allowed operations for the grant.

      Parameters:
      allowedOperations - Allowed operations for the grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Tags to add to the grant. For more information about tagging support in License Manager, see the TagResource operation.

      Parameters:
      tags - Tags to add to the grant. For more information about tagging support in License Manager, see the TagResource operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Tags to add to the grant. For more information about tagging support in License Manager, see the TagResource operation.

      Parameters:
      tags - Tags to add to the grant. For more information about tagging support in License Manager, see the TagResource operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Tags to add to the grant. For more information about tagging support in License Manager, see the TagResource operation.

      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<Tag>).

      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:
    • overrideConfiguration

      CreateGrantRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.