Interface CreateAccessPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateAccessPolicyRequest.Builder,
,CreateAccessPolicyRequest> IoTSiteWiseRequest.Builder
,SdkBuilder<CreateAccessPolicyRequest.Builder,
,CreateAccessPolicyRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateAccessPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccessPolicyIdentity
(Consumer<Identity.Builder> accessPolicyIdentity) The identity for this access policy.accessPolicyIdentity
(Identity accessPolicyIdentity) The identity for this access policy.accessPolicyPermission
(String accessPolicyPermission) The permission level for this access policy.accessPolicyPermission
(Permission accessPolicyPermission) The permission level for this access policy.accessPolicyResource
(Consumer<Resource.Builder> accessPolicyResource) The IoT SiteWise Monitor resource for this access policy.accessPolicyResource
(Resource accessPolicyResource) The IoT SiteWise Monitor resource for this access policy.clientToken
(String clientToken) A unique case-sensitive identifier that you can provide to ensure the idempotency of the request.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.A list of key-value pairs that contain metadata for the access policy.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.iotsitewise.model.IoTSiteWiseRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accessPolicyIdentity
The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
- Parameters:
accessPolicyIdentity
- The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessPolicyIdentity
default CreateAccessPolicyRequest.Builder accessPolicyIdentity(Consumer<Identity.Builder> accessPolicyIdentity) The identity for this access policy. Choose an IAM Identity Center user, an IAM Identity Center group, or an IAM user.
This is a convenience method that creates an instance of theIdentity.Builder
avoiding the need to create one manually viaIdentity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessPolicyIdentity(Identity)
.- Parameters:
accessPolicyIdentity
- a consumer that will call methods onIdentity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessPolicyResource
The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
- Parameters:
accessPolicyResource
- The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessPolicyResource
default CreateAccessPolicyRequest.Builder accessPolicyResource(Consumer<Resource.Builder> accessPolicyResource) The IoT SiteWise Monitor resource for this access policy. Choose either a portal or a project.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toaccessPolicyResource(Resource)
.- Parameters:
accessPolicyResource
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessPolicyPermission
The permission level for this access policy. Note that a project
ADMINISTRATOR
is also known as a project owner.- Parameters:
accessPolicyPermission
- The permission level for this access policy. Note that a projectADMINISTRATOR
is also known as a project owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accessPolicyPermission
The permission level for this access policy. Note that a project
ADMINISTRATOR
is also known as a project owner.- Parameters:
accessPolicyPermission
- The permission level for this access policy. Note that a projectADMINISTRATOR
is also known as a project owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.
- Parameters:
clientToken
- A unique case-sensitive identifier that you can provide to ensure the idempotency of the request. Don't reuse this client token if a new idempotent request is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.
- Parameters:
tags
- A list of key-value pairs that contain metadata for the access policy. For more information, see Tagging your IoT SiteWise resources in the IoT SiteWise User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAccessPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAccessPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-