Interface UpdatePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>,SdkBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>,SdkPojo,SdkRequest.Builder,VerifiedPermissionsRequest.Builder
- Enclosing class:
- UpdatePolicyRequest
public static interface UpdatePolicyRequest.Builder extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<UpdatePolicyRequest.Builder,UpdatePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default UpdatePolicyRequest.Builderdefinition(Consumer<UpdatePolicyDefinition.Builder> definition)Specifies the updated policy content that you want to replace on the specified policy.UpdatePolicyRequest.Builderdefinition(UpdatePolicyDefinition definition)Specifies the updated policy content that you want to replace on the specified policy.UpdatePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdatePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)UpdatePolicyRequest.BuilderpolicyId(String policyId)Specifies the ID of the policy that you want to update.UpdatePolicyRequest.BuilderpolicyStoreId(String policyStoreId)Specifies the ID of the policy store that contains the policy that you want to update.-
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.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsRequest.Builder
build
-
-
-
-
Method Detail
-
policyStoreId
UpdatePolicyRequest.Builder policyStoreId(String policyStoreId)
Specifies the ID of the policy store that contains the policy that you want to update.
- Parameters:
policyStoreId- Specifies the ID of the policy store that contains the policy that you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyId
UpdatePolicyRequest.Builder policyId(String policyId)
Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
- Parameters:
policyId- Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
UpdatePolicyRequest.Builder definition(UpdatePolicyDefinition definition)
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
- Parameters:
definition- Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
definition
default UpdatePolicyRequest.Builder definition(Consumer<UpdatePolicyDefinition.Builder> definition)
Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
You can change only the following elements from the policy definition:
-
The
actionreferenced by the policy. -
Any conditional clauses, such as
whenorunlessclauses.
You can't change the following elements:
-
Changing from
statictotemplateLinked. -
Changing the effect of the policy from
permitorforbid. -
The
principalreferenced by the policy. -
The
resourcereferenced by the policy.
UpdatePolicyDefinition.Builderavoiding the need to create one manually viaUpdatePolicyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(UpdatePolicyDefinition).- Parameters:
definition- a consumer that will call methods onUpdatePolicyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
definition(UpdatePolicyDefinition)
-
-
overrideConfiguration
UpdatePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdatePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-