/* * 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.fms.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A set of resources to include in a policy. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourceSet implements Serializable, Cloneable, StructuredPojo { /** ** A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
*/ private String id; /** ** The descriptive name of the resource set. You can't change the name of a resource set after you create it. *
*/ private String name; /** ** A description of the resource set. *
*/ private String description; /** ** An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that * access the resource set. The token marks the state of the resource set resource at the time of the request. * Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the * resource set requires the update token. *
** To make an unconditional change to the resource set, omit the token in your update request. Without the token, * Firewall Manager performs your updates regardless of whether the resource set has changed since you last * retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses
* the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the
* operation fails with an InvalidTokenException
. If this happens, retrieve the resource set again to
* get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the
* new token.
*
* Determines the resources that can be associated to the resource set. Depending on your setting for max results * and the number of resource sets, a single call might not return the full list. *
*/ private java.util.List* The last time that the resource set was changed. *
*/ private java.util.Date lastUpdateTime; /** ** Indicates whether the resource set is in or out of an admin's Region scope. *
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or delete the
* resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't
* be protected.
*
* A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
* * @param id * A unique identifier for the resource set. This ID is returned in the responses to create and list * commands. You provide it to operations like update and delete. */ public void setId(String id) { this.id = id; } /** ** A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
* * @return A unique identifier for the resource set. This ID is returned in the responses to create and list * commands. You provide it to operations like update and delete. */ public String getId() { return this.id; } /** ** A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. *
* * @param id * A unique identifier for the resource set. This ID is returned in the responses to create and list * commands. You provide it to operations like update and delete. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSet withId(String id) { setId(id); return this; } /** ** The descriptive name of the resource set. You can't change the name of a resource set after you create it. *
* * @param name * The descriptive name of the resource set. You can't change the name of a resource set after you create it. */ public void setName(String name) { this.name = name; } /** ** The descriptive name of the resource set. You can't change the name of a resource set after you create it. *
* * @return The descriptive name of the resource set. You can't change the name of a resource set after you create * it. */ public String getName() { return this.name; } /** ** The descriptive name of the resource set. You can't change the name of a resource set after you create it. *
* * @param name * The descriptive name of the resource set. You can't change the name of a resource set after you create it. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSet withName(String name) { setName(name); return this; } /** ** A description of the resource set. *
* * @param description * A description of the resource set. */ public void setDescription(String description) { this.description = description; } /** ** A description of the resource set. *
* * @return A description of the resource set. */ public String getDescription() { return this.description; } /** ** A description of the resource set. *
* * @param description * A description of the resource set. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSet withDescription(String description) { setDescription(description); return this; } /** ** An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that * access the resource set. The token marks the state of the resource set resource at the time of the request. * Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the * resource set requires the update token. *
** To make an unconditional change to the resource set, omit the token in your update request. Without the token, * Firewall Manager performs your updates regardless of whether the resource set has changed since you last * retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses
* the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the
* operation fails with an InvalidTokenException
. If this happens, retrieve the resource set again to
* get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the
* new token.
*
* To make an unconditional change to the resource set, omit the token in your update request. Without the * token, Firewall Manager performs your updates regardless of whether the resource set has changed since you * last retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall
* Manager uses the token to ensure that the resource set hasn't changed since you last retrieved it. If it
* has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the
* resource set again to get a current copy of it with a new token. Reapply your changes as needed, then try
* the operation again using the new token.
*/
public void setUpdateToken(String updateToken) {
this.updateToken = updateToken;
}
/**
*
* An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that * access the resource set. The token marks the state of the resource set resource at the time of the request. * Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the * resource set requires the update token. *
** To make an unconditional change to the resource set, omit the token in your update request. Without the token, * Firewall Manager performs your updates regardless of whether the resource set has changed since you last * retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses
* the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the
* operation fails with an InvalidTokenException
. If this happens, retrieve the resource set again to
* get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the
* new token.
*
* To make an unconditional change to the resource set, omit the token in your update request. Without the * token, Firewall Manager performs your updates regardless of whether the resource set has changed since * you last retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall
* Manager uses the token to ensure that the resource set hasn't changed since you last retrieved it. If it
* has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve
* the resource set again to get a current copy of it with a new token. Reapply your changes as needed, then
* try the operation again using the new token.
*/
public String getUpdateToken() {
return this.updateToken;
}
/**
*
* An optional token that you can use for optimistic locking. Firewall Manager returns a token to your requests that * access the resource set. The token marks the state of the resource set resource at the time of the request. * Update tokens are not allowed when creating a resource set. After creation, each subsequent update call to the * resource set requires the update token. *
** To make an unconditional change to the resource set, omit the token in your update request. Without the token, * Firewall Manager performs your updates regardless of whether the resource set has changed since you last * retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall Manager uses
* the token to ensure that the resource set hasn't changed since you last retrieved it. If it has changed, the
* operation fails with an InvalidTokenException
. If this happens, retrieve the resource set again to
* get a current copy of it with a new token. Reapply your changes as needed, then try the operation again using the
* new token.
*
* To make an unconditional change to the resource set, omit the token in your update request. Without the * token, Firewall Manager performs your updates regardless of whether the resource set has changed since you * last retrieved it. *
*
* To make a conditional change to the resource set, provide the token in your update request. Firewall
* Manager uses the token to ensure that the resource set hasn't changed since you last retrieved it. If it
* has changed, the operation fails with an InvalidTokenException
. If this happens, retrieve the
* resource set again to get a current copy of it with a new token. Reapply your changes as needed, then try
* the operation again using the new token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourceSet withUpdateToken(String updateToken) {
setUpdateToken(updateToken);
return this;
}
/**
*
* Determines the resources that can be associated to the resource set. Depending on your setting for max results * and the number of resource sets, a single call might not return the full list. *
* * @return Determines the resources that can be associated to the resource set. Depending on your setting for max * results and the number of resource sets, a single call might not return the full list. */ public java.util.List* Determines the resources that can be associated to the resource set. Depending on your setting for max results * and the number of resource sets, a single call might not return the full list. *
* * @param resourceTypeList * Determines the resources that can be associated to the resource set. Depending on your setting for max * results and the number of resource sets, a single call might not return the full list. */ public void setResourceTypeList(java.util.Collection* Determines the resources that can be associated to the resource set. Depending on your setting for max results * and the number of resource sets, a single call might not return the full list. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceTypeList(java.util.Collection)} or {@link #withResourceTypeList(java.util.Collection)} if you * want to override the existing values. *
* * @param resourceTypeList * Determines the resources that can be associated to the resource set. Depending on your setting for max * results and the number of resource sets, a single call might not return the full list. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSet withResourceTypeList(String... resourceTypeList) { if (this.resourceTypeList == null) { setResourceTypeList(new java.util.ArrayList* Determines the resources that can be associated to the resource set. Depending on your setting for max results * and the number of resource sets, a single call might not return the full list. *
* * @param resourceTypeList * Determines the resources that can be associated to the resource set. Depending on your setting for max * results and the number of resource sets, a single call might not return the full list. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSet withResourceTypeList(java.util.Collection* The last time that the resource set was changed. *
* * @param lastUpdateTime * The last time that the resource set was changed. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** ** The last time that the resource set was changed. *
* * @return The last time that the resource set was changed. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** ** The last time that the resource set was changed. *
* * @param lastUpdateTime * The last time that the resource set was changed. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceSet withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** ** Indicates whether the resource set is in or out of an admin's Region scope. *
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or delete the
* resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't
* be protected.
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or
* delete the resource set. Existing protections stay in place. Any new resource that come into scope of the
* resource set won't be protected.
*
* Indicates whether the resource set is in or out of an admin's Region scope. *
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or delete the
* resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't
* be protected.
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or
* delete the resource set. Existing protections stay in place. Any new resource that come into scope of the
* resource set won't be protected.
*
* Indicates whether the resource set is in or out of an admin's Region scope. *
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or delete the
* resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't
* be protected.
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or
* delete the resource set. Existing protections stay in place. Any new resource that come into scope of the
* resource set won't be protected.
*
* Indicates whether the resource set is in or out of an admin's Region scope. *
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or delete the
* resource set. Existing protections stay in place. Any new resource that come into scope of the resource set won't
* be protected.
*
* ACTIVE
- The administrator can manage and delete the resource set.
*
* OUT_OF_ADMIN_SCOPE
- The administrator can view the resource set, but they can't edit or
* delete the resource set. Existing protections stay in place. Any new resource that come into scope of the
* resource set won't be protected.
*