/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.verifiedpermissions.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about an update to a static policy. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateStaticPolicyDefinition implements Serializable, Cloneable, StructuredPojo { /** ** Specifies the description to be added to or replaced on the static policy. *
*/ private String description; /** ** Specifies the Cedar policy language text to be added to or replaced on the static policy. *
** You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*
* Specifies the description to be added to or replaced on the static policy. *
* * @param description * Specifies the description to be added to or replaced on the static policy. */ public void setDescription(String description) { this.description = description; } /** ** Specifies the description to be added to or replaced on the static policy. *
* * @return Specifies the description to be added to or replaced on the static policy. */ public String getDescription() { return this.description; } /** ** Specifies the description to be added to or replaced on the static policy. *
* * @param description * Specifies the description to be added to or replaced on the static policy. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateStaticPolicyDefinition withDescription(String description) { setDescription(description); return this; } /** ** Specifies the Cedar policy language text to be added to or replaced on the static policy. *
** You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*
* You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*
* Specifies the Cedar policy language text to be added to or replaced on the static policy. *
** You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*
* You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*
* Specifies the Cedar policy language text to be added to or replaced on the static policy. *
** You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*
* You can change only the following elements from the original content: *
*
* The action
referenced by the policy.
*
* Any conditional clauses, such as when
or unless
clauses.
*
* You can't change the following elements: *
*
* Changing from StaticPolicy
to TemplateLinkedPolicy
.
*
* The effect (permit
or forbid
) of the policy.
*
* The principal
referenced by the policy.
*
* The resource
referenced by the policy.
*