/* * 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 a policy. *

*

* This data type is used as a response parameter for the ListPolicies * operation. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PolicyItem implements Serializable, Cloneable, StructuredPojo { /** *

* The identifier of the PolicyStore where the policy you want information about is stored. *

*/ private String policyStoreId; /** *

* The identifier of the policy you want information about. *

*/ private String policyId; /** *

* The type of the policy. This is one of the following values: *

* */ private String policyType; /** *

* The principal associated with the policy. *

*/ private EntityIdentifier principal; /** *

* The resource associated with the policy. *

*/ private EntityIdentifier resource; /** *

* The policy definition of an item in the list of policies returned. *

*/ private PolicyDefinitionItem definition; /** *

* The date and time the policy was created. *

*/ private java.util.Date createdDate; /** *

* The date and time the policy was most recently updated. *

*/ private java.util.Date lastUpdatedDate; /** *

* The identifier of the PolicyStore where the policy you want information about is stored. *

* * @param policyStoreId * The identifier of the PolicyStore where the policy you want information about is stored. */ public void setPolicyStoreId(String policyStoreId) { this.policyStoreId = policyStoreId; } /** *

* The identifier of the PolicyStore where the policy you want information about is stored. *

* * @return The identifier of the PolicyStore where the policy you want information about is stored. */ public String getPolicyStoreId() { return this.policyStoreId; } /** *

* The identifier of the PolicyStore where the policy you want information about is stored. *

* * @param policyStoreId * The identifier of the PolicyStore where the policy you want information about is stored. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyItem withPolicyStoreId(String policyStoreId) { setPolicyStoreId(policyStoreId); return this; } /** *

* The identifier of the policy you want information about. *

* * @param policyId * The identifier of the policy you want information about. */ public void setPolicyId(String policyId) { this.policyId = policyId; } /** *

* The identifier of the policy you want information about. *

* * @return The identifier of the policy you want information about. */ public String getPolicyId() { return this.policyId; } /** *

* The identifier of the policy you want information about. *

* * @param policyId * The identifier of the policy you want information about. * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyItem withPolicyId(String policyId) { setPolicyId(policyId); return this; } /** *

* The type of the policy. This is one of the following values: *

* * * @param policyType * The type of the policy. This is one of the following values:

*