All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cloudcontrolapi.model.DeleteResourceRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Cloud Control API module holds the client classes that are used for communicating with AWS Cloud Control API Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.cloudcontrolapi.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the resource type. *

*/ private String typeName; /** *

* For private resource types, the type version to use in this resource operation. If you do not specify a resource * version, CloudFormation uses the default version. *

*/ private String typeVersionId; /** *

* The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when * performing this resource operation. The role specified must have the permissions required for this operation. The * necessary permissions for each event handler are defined in the * handlers * section of the resource type * definition schema. *

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services * user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. *

*/ private String roleArn; /** *

* A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this token to * ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish between request * retries and new resource requests. You might retry a resource request to ensure that it was successfully * received. *

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token is * treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. *

*/ private String clientToken; /** *

* The identifier for the resource. *

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource * schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary * identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to * specify the primary identifier as a string, list the property values in the order they are specified in * the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. *

*/ private String identifier; /** *

* The name of the resource type. *

* * @param typeName * The name of the resource type. */ public void setTypeName(String typeName) { this.typeName = typeName; } /** *

* The name of the resource type. *

* * @return The name of the resource type. */ public String getTypeName() { return this.typeName; } /** *

* The name of the resource type. *

* * @param typeName * The name of the resource type. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteResourceRequest withTypeName(String typeName) { setTypeName(typeName); return this; } /** *

* For private resource types, the type version to use in this resource operation. If you do not specify a resource * version, CloudFormation uses the default version. *

* * @param typeVersionId * For private resource types, the type version to use in this resource operation. If you do not specify a * resource version, CloudFormation uses the default version. */ public void setTypeVersionId(String typeVersionId) { this.typeVersionId = typeVersionId; } /** *

* For private resource types, the type version to use in this resource operation. If you do not specify a resource * version, CloudFormation uses the default version. *

* * @return For private resource types, the type version to use in this resource operation. If you do not specify a * resource version, CloudFormation uses the default version. */ public String getTypeVersionId() { return this.typeVersionId; } /** *

* For private resource types, the type version to use in this resource operation. If you do not specify a resource * version, CloudFormation uses the default version. *

* * @param typeVersionId * For private resource types, the type version to use in this resource operation. If you do not specify a * resource version, CloudFormation uses the default version. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteResourceRequest withTypeVersionId(String typeVersionId) { setTypeVersionId(typeVersionId); return this; } /** *

* The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when * performing this resource operation. The role specified must have the permissions required for this operation. The * necessary permissions for each event handler are defined in the * handlers * section of the resource type * definition schema. *

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services * user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. *

* * @param roleArn * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to * use when performing this resource operation. The role specified must have the permissions required for * this operation. The necessary permissions for each event handler are defined in the * handlers * section of the resource * type definition schema.

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web * Services user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when * performing this resource operation. The role specified must have the permissions required for this operation. The * necessary permissions for each event handler are defined in the * handlers * section of the resource type * definition schema. *

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services * user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. *

* * @return The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to * use when performing this resource operation. The role specified must have the permissions required for * this operation. The necessary permissions for each event handler are defined in the * handlers * section of the resource * type definition schema.

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web * Services user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to use when * performing this resource operation. The role specified must have the permissions required for this operation. The * necessary permissions for each event handler are defined in the * handlers * section of the resource type * definition schema. *

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web Services * user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. *

* * @param roleArn * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role for Cloud Control API to * use when performing this resource operation. The role specified must have the permissions required for * this operation. The necessary permissions for each event handler are defined in the * handlers * section of the resource * type definition schema.

*

* If you do not specify a role, Cloud Control API uses a temporary session created using your Amazon Web * Services user credentials. *

*

* For more information, see Specifying credentials in the Amazon Web Services Cloud Control API User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteResourceRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this token to * ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish between request * retries and new resource requests. You might retry a resource request to ensure that it was successfully * received. *

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token is * treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. *

* * @param clientToken * A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this * token to ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish * between request retries and new resource requests. You might retry a resource request to ensure that it * was successfully received.

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token * is treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this token to * ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish between request * retries and new resource requests. You might retry a resource request to ensure that it was successfully * received. *

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token is * treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. *

* * @return A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this * token to ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish * between request retries and new resource requests. You might retry a resource request to ensure that it * was successfully received.

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token * is treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. */ public String getClientToken() { return this.clientToken; } /** *

* A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this token to * ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish between request * retries and new resource requests. You might retry a resource request to ensure that it was successfully * received. *

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token is * treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. *

* * @param clientToken * A unique identifier to ensure the idempotency of the resource request. As a best practice, specify this * token to ensure idempotency, so that Amazon Web Services Cloud Control API can accurately distinguish * between request retries and new resource requests. You might retry a resource request to ensure that it * was successfully received.

*

* A client token is valid for 36 hours once used. After that, a resource request with the same client token * is treated as a new request. *

*

* If you do not specify a client token, one is generated for inclusion in the request. *

*

* For more information, see Ensuring resource operation requests are unique in the Amazon Web Services Cloud Control API User * Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteResourceRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The identifier for the resource. *

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource * schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary * identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to * specify the primary identifier as a string, list the property values in the order they are specified in * the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. *

* * @param identifier * The identifier for the resource.

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its * resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or * JSON; secondary identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung * together), to specify the primary identifier as a string, list the property values in the order they * are specified in the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. */ public void setIdentifier(String identifier) { this.identifier = identifier; } /** *

* The identifier for the resource. *

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource * schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary * identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to * specify the primary identifier as a string, list the property values in the order they are specified in * the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. *

* * @return The identifier for the resource.

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its * resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or * JSON; secondary identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung * together), to specify the primary identifier as a string, list the property values in the order they * are specified in the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. */ public String getIdentifier() { return this.identifier; } /** *

* The identifier for the resource. *

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its resource * schema. You can only specify one identifier. Primary identifiers can be specified as a string or JSON; secondary * identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung together), to * specify the primary identifier as a string, list the property values in the order they are specified in * the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. *

* * @param identifier * The identifier for the resource.

*

* You can specify the primary identifier, or any secondary identifier defined for the resource type in its * resource schema. You can only specify one identifier. Primary identifiers can be specified as a string or * JSON; secondary identifiers must be specified as JSON. *

*

* For compound primary identifiers (that is, one that consists of multiple resource properties strung * together), to specify the primary identifier as a string, list the property values in the order they * are specified in the primary identifier definition, separated by |. *

*

* For more information, see Identifying * resources in the Amazon Web Services Cloud Control API User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteResourceRequest withIdentifier(String identifier) { setIdentifier(identifier); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTypeName() != null) sb.append("TypeName: ").append(getTypeName()).append(","); if (getTypeVersionId() != null) sb.append("TypeVersionId: ").append(getTypeVersionId()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getIdentifier() != null) sb.append("Identifier: ").append(getIdentifier()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteResourceRequest == false) return false; DeleteResourceRequest other = (DeleteResourceRequest) obj; if (other.getTypeName() == null ^ this.getTypeName() == null) return false; if (other.getTypeName() != null && other.getTypeName().equals(this.getTypeName()) == false) return false; if (other.getTypeVersionId() == null ^ this.getTypeVersionId() == null) return false; if (other.getTypeVersionId() != null && other.getTypeVersionId().equals(this.getTypeVersionId()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getIdentifier() == null ^ this.getIdentifier() == null) return false; if (other.getIdentifier() != null && other.getIdentifier().equals(this.getIdentifier()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTypeName() == null) ? 0 : getTypeName().hashCode()); hashCode = prime * hashCode + ((getTypeVersionId() == null) ? 0 : getTypeVersionId().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode()); return hashCode; } @Override public DeleteResourceRequest clone() { return (DeleteResourceRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy