/* * 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 the list of entities to be considered during an authorization request. This includes all principals, * resources, and actions required to successfully evaluate the request. *
** This data type is used as a field in the response parameter for the IsAuthorized and * * IsAuthorizedWithToken operations. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EntitiesDefinition implements Serializable, Cloneable, StructuredPojo { /** ** An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array * must include an identifier for the entity, the attributes of the entity, and a list of any parent entities. *
*/ private java.util.List* An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array * must include an identifier for the entity, the attributes of the entity, and a list of any parent entities. *
* * @return An array of entities that are needed to successfully evaluate an authorization request. Each entity in * this array must include an identifier for the entity, the attributes of the entity, and a list of any * parent entities. */ public java.util.List* An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array * must include an identifier for the entity, the attributes of the entity, and a list of any parent entities. *
* * @param entityList * An array of entities that are needed to successfully evaluate an authorization request. Each entity in * this array must include an identifier for the entity, the attributes of the entity, and a list of any * parent entities. */ public void setEntityList(java.util.Collection* An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array * must include an identifier for the entity, the attributes of the entity, and a list of any parent entities. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setEntityList(java.util.Collection)} or {@link #withEntityList(java.util.Collection)} if you want to * override the existing values. *
* * @param entityList * An array of entities that are needed to successfully evaluate an authorization request. Each entity in * this array must include an identifier for the entity, the attributes of the entity, and a list of any * parent entities. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitiesDefinition withEntityList(EntityItem... entityList) { if (this.entityList == null) { setEntityList(new java.util.ArrayList* An array of entities that are needed to successfully evaluate an authorization request. Each entity in this array * must include an identifier for the entity, the attributes of the entity, and a list of any parent entities. *
* * @param entityList * An array of entities that are needed to successfully evaluate an authorization request. Each entity in * this array must include an identifier for the entity, the attributes of the entity, and a list of any * parent entities. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitiesDefinition withEntityList(java.util.Collection