Interface CreateGrantRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateGrantRequest.Builder,,CreateGrantRequest> LicenseManagerRequest.Builder,SdkBuilder<CreateGrantRequest.Builder,,CreateGrantRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateGrantRequest
-
Method Summary
Modifier and TypeMethodDescriptionallowedOperations(Collection<AllowedOperation> allowedOperations) Allowed operations for the grant.allowedOperations(AllowedOperation... allowedOperations) Allowed operations for the grant.allowedOperationsWithStrings(String... allowedOperations) Allowed operations for the grant.allowedOperationsWithStrings(Collection<String> allowedOperations) Allowed operations for the grant.clientToken(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.Grant name.The type of grant to create.The type of grant to create.homeRegion(String homeRegion) Home Region of the grant.licenseArn(String licenseArn) Amazon Resource Name (ARN) of the license.default CreateGrantRequest.Builderoptions(Consumer<Options.Builder> options) The options for the grant: the status to set after creation, and how activating the grant affects other active grants for the same product.The options for the grant: the status to set after creation, and how activating the grant affects other active grants for the same product.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.principals(String... principals) The grant principals.principals(Collection<String> principals) The grant principals.tags(Collection<Tag> tags) Tags to add to the grant.tags(Consumer<Tag.Builder>... tags) Tags to add to the grant.Tags to add to the grant.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.licensemanager.model.LicenseManagerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
Grant name.
- Parameters:
grantName- Grant name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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
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
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
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
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 theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
grantType
The type of grant to create. For more information about each type, see the preceding description of this operation. Valid values:
-
BuyerGrant- The default grant type if you don't specify a value. Conveys the entitlement to use the license. -
DelegateGrant- Gives the grantee read-only visibility into the licenses and grants that you have distributed to buyers, with no entitlement to use them.
- Parameters:
grantType- The type of grant to create. For more information about each type, see the preceding description of this operation. Valid values:-
BuyerGrant- The default grant type if you don't specify a value. Conveys the entitlement to use the license. -
DelegateGrant- Gives the grantee read-only visibility into the licenses and grants that you have distributed to buyers, with no entitlement to use them.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
grantType
The type of grant to create. For more information about each type, see the preceding description of this operation. Valid values:
-
BuyerGrant- The default grant type if you don't specify a value. Conveys the entitlement to use the license. -
DelegateGrant- Gives the grantee read-only visibility into the licenses and grants that you have distributed to buyers, with no entitlement to use them.
- Parameters:
grantType- The type of grant to create. For more information about each type, see the preceding description of this operation. Valid values:-
BuyerGrant- The default grant type if you don't specify a value. Conveys the entitlement to use the license. -
DelegateGrant- Gives the grantee read-only visibility into the licenses and grants that you have distributed to buyers, with no entitlement to use them.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
options
The options for the grant: the status to set after creation, and how activating the grant affects other active grants for the same product.
- Parameters:
options- The options for the grant: the status to set after creation, and how activating the grant affects other active grants for the same product.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
options
The options for the grant: the status to set after creation, and how activating the grant affects other active grants for the same product.
This is a convenience method that creates an instance of theOptions.Builderavoiding the need to create one manually viaOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooptions(Options).- Parameters:
options- a consumer that will call methods onOptions.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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateGrantRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-