Interface CreateGrantRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateGrantRequest.Builder,CreateGrantRequest>, LicenseManagerRequest.Builder, SdkBuilder<CreateGrantRequest.Builder,CreateGrantRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateGrantRequest

public static interface CreateGrantRequest.Builder extends LicenseManagerRequest.Builder, SdkPojo, CopyableBuilder<CreateGrantRequest.Builder,CreateGrantRequest>
  • 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.
    • 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.