Interface CreateGrantRequest.Builder

    • Method Detail

      • 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.