/*
* 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.iot.model;
import java.io.Serializable;
import javax.annotation.Generated;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeManagedJobTemplateResult extends com.amazonaws.AmazonWebServiceResult
* The unique name of a managed template, such as
* The unique Amazon Resource Name (ARN) of the managed template.
*
* The unique description of a managed template.
*
* The version for a managed template.
*
* A list of environments that are supported with the managed job template.
*
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed
* template.
*
*
* The document schema for a managed job template.
*
* The unique name of a managed template, such as
* The unique name of a managed template, such as
* The unique name of a managed template, such as
* The unique Amazon Resource Name (ARN) of the managed template.
*
* The unique Amazon Resource Name (ARN) of the managed template.
*
* The unique Amazon Resource Name (ARN) of the managed template.
*
* The unique description of a managed template.
*
* The unique description of a managed template.
*
* The unique description of a managed template.
*
* The version for a managed template.
*
* The version for a managed template.
*
* The version for a managed template.
*
* A list of environments that are supported with the managed job template.
*
* A list of environments that are supported with the managed job template.
*
* A list of environments that are supported with the managed job template.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEnvironments(java.util.Collection)} or {@link #withEnvironments(java.util.Collection)} if you want to
* override the existing values.
*
* A list of environments that are supported with the managed job template.
*
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed
* template.
*
* AWS-Reboot
.
* documentParameters
can only be used when creating jobs from Amazon Web Services managed templates.
* This parameter can't be used with custom job templates or to create jobs from them.
* AWS-Reboot
.
* AWS-Reboot
.
*/
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
/**
* AWS-Reboot
.
* AWS-Reboot
.
*/
public String getTemplateName() {
return this.templateName;
}
/**
* AWS-Reboot
.
* AWS-Reboot
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeManagedJobTemplateResult withTemplateName(String templateName) {
setTemplateName(templateName);
return this;
}
/**
* documentParameters
can only be used when creating jobs from Amazon Web Services managed templates.
* This parameter can't be used with custom job templates or to create jobs from them.
*
* documentParameters
can only be used when creating jobs from Amazon Web Services managed
* templates. This parameter can't be used with custom job templates or to create jobs from them.
*
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed * template. *
*
* documentParameters
can only be used when creating jobs from Amazon Web Services managed templates.
* This parameter can't be used with custom job templates or to create jobs from them.
*
* documentParameters
can only be used when creating jobs from Amazon Web Services managed
* templates. This parameter can't be used with custom job templates or to create jobs from them.
*
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed * template. *
*
* documentParameters
can only be used when creating jobs from Amazon Web Services managed templates.
* This parameter can't be used with custom job templates or to create jobs from them.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setDocumentParameters(java.util.Collection)} or {@link #withDocumentParameters(java.util.Collection)} if * you want to override the existing values. *
* * @param documentParameters * A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a * managed template.
* documentParameters
can only be used when creating jobs from Amazon Web Services managed
* templates. This parameter can't be used with custom job templates or to create jobs from them.
*
* A map of key-value pairs that you can use as guidance to specify the inputs for creating a job from a managed * template. *
*
* documentParameters
can only be used when creating jobs from Amazon Web Services managed templates.
* This parameter can't be used with custom job templates or to create jobs from them.
*
* documentParameters
can only be used when creating jobs from Amazon Web Services managed
* templates. This parameter can't be used with custom job templates or to create jobs from them.
*
* The document schema for a managed job template. *
* * @param document * The document schema for a managed job template. */ public void setDocument(String document) { this.document = document; } /** ** The document schema for a managed job template. *
* * @return The document schema for a managed job template. */ public String getDocument() { return this.document; } /** ** The document schema for a managed job template. *
* * @param document * The document schema for a managed job template. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeManagedJobTemplateResult withDocument(String document) { setDocument(document); 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 (getTemplateName() != null) sb.append("TemplateName: ").append(getTemplateName()).append(","); if (getTemplateArn() != null) sb.append("TemplateArn: ").append(getTemplateArn()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getTemplateVersion() != null) sb.append("TemplateVersion: ").append(getTemplateVersion()).append(","); if (getEnvironments() != null) sb.append("Environments: ").append(getEnvironments()).append(","); if (getDocumentParameters() != null) sb.append("DocumentParameters: ").append(getDocumentParameters()).append(","); if (getDocument() != null) sb.append("Document: ").append(getDocument()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeManagedJobTemplateResult == false) return false; DescribeManagedJobTemplateResult other = (DescribeManagedJobTemplateResult) obj; if (other.getTemplateName() == null ^ this.getTemplateName() == null) return false; if (other.getTemplateName() != null && other.getTemplateName().equals(this.getTemplateName()) == false) return false; if (other.getTemplateArn() == null ^ this.getTemplateArn() == null) return false; if (other.getTemplateArn() != null && other.getTemplateArn().equals(this.getTemplateArn()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getTemplateVersion() == null ^ this.getTemplateVersion() == null) return false; if (other.getTemplateVersion() != null && other.getTemplateVersion().equals(this.getTemplateVersion()) == false) return false; if (other.getEnvironments() == null ^ this.getEnvironments() == null) return false; if (other.getEnvironments() != null && other.getEnvironments().equals(this.getEnvironments()) == false) return false; if (other.getDocumentParameters() == null ^ this.getDocumentParameters() == null) return false; if (other.getDocumentParameters() != null && other.getDocumentParameters().equals(this.getDocumentParameters()) == false) return false; if (other.getDocument() == null ^ this.getDocument() == null) return false; if (other.getDocument() != null && other.getDocument().equals(this.getDocument()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTemplateName() == null) ? 0 : getTemplateName().hashCode()); hashCode = prime * hashCode + ((getTemplateArn() == null) ? 0 : getTemplateArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTemplateVersion() == null) ? 0 : getTemplateVersion().hashCode()); hashCode = prime * hashCode + ((getEnvironments() == null) ? 0 : getEnvironments().hashCode()); hashCode = prime * hashCode + ((getDocumentParameters() == null) ? 0 : getDocumentParameters().hashCode()); hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); return hashCode; } @Override public DescribeManagedJobTemplateResult clone() { try { return (DescribeManagedJobTemplateResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }