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

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

/*
 * Copyright 2017-2022 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 GetResourceRequest 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; /** *

* 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 GetResourceRequest 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 GetResourceRequest 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 GetResourceRequest withRoleArn(String roleArn) { setRoleArn(roleArn); 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 GetResourceRequest 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 (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 GetResourceRequest == false) return false; GetResourceRequest other = (GetResourceRequest) 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.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 + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode()); return hashCode; } @Override public GetResourceRequest clone() { return (GetResourceRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy