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

com.amazonaws.services.drs.model.LaunchConfigurationTemplate Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Elastic Disaster Recovery module holds the client classes that are used for communicating with Elastic Disaster Recovery 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.drs.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Account level Launch Configuration Template. *

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

* ARN of the Launch Configuration Template. *

*/ private String arn; /** *

* Copy private IP. *

*/ private Boolean copyPrivateIp; /** *

* Copy tags. *

*/ private Boolean copyTags; /** *

* S3 bucket ARN to export Source Network templates. *

*/ private String exportBucketArn; /** *

* ID of the Launch Configuration Template. *

*/ private String launchConfigurationTemplateID; /** *

* Launch disposition. *

*/ private String launchDisposition; /** *

* Licensing. *

*/ private Licensing licensing; /** *

* Tags of the Launch Configuration Template. *

*/ private java.util.Map tags; /** *

* Target instance type right-sizing method. *

*/ private String targetInstanceTypeRightSizingMethod; /** *

* ARN of the Launch Configuration Template. *

* * @param arn * ARN of the Launch Configuration Template. */ public void setArn(String arn) { this.arn = arn; } /** *

* ARN of the Launch Configuration Template. *

* * @return ARN of the Launch Configuration Template. */ public String getArn() { return this.arn; } /** *

* ARN of the Launch Configuration Template. *

* * @param arn * ARN of the Launch Configuration Template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withArn(String arn) { setArn(arn); return this; } /** *

* Copy private IP. *

* * @param copyPrivateIp * Copy private IP. */ public void setCopyPrivateIp(Boolean copyPrivateIp) { this.copyPrivateIp = copyPrivateIp; } /** *

* Copy private IP. *

* * @return Copy private IP. */ public Boolean getCopyPrivateIp() { return this.copyPrivateIp; } /** *

* Copy private IP. *

* * @param copyPrivateIp * Copy private IP. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withCopyPrivateIp(Boolean copyPrivateIp) { setCopyPrivateIp(copyPrivateIp); return this; } /** *

* Copy private IP. *

* * @return Copy private IP. */ public Boolean isCopyPrivateIp() { return this.copyPrivateIp; } /** *

* Copy tags. *

* * @param copyTags * Copy tags. */ public void setCopyTags(Boolean copyTags) { this.copyTags = copyTags; } /** *

* Copy tags. *

* * @return Copy tags. */ public Boolean getCopyTags() { return this.copyTags; } /** *

* Copy tags. *

* * @param copyTags * Copy tags. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withCopyTags(Boolean copyTags) { setCopyTags(copyTags); return this; } /** *

* Copy tags. *

* * @return Copy tags. */ public Boolean isCopyTags() { return this.copyTags; } /** *

* S3 bucket ARN to export Source Network templates. *

* * @param exportBucketArn * S3 bucket ARN to export Source Network templates. */ public void setExportBucketArn(String exportBucketArn) { this.exportBucketArn = exportBucketArn; } /** *

* S3 bucket ARN to export Source Network templates. *

* * @return S3 bucket ARN to export Source Network templates. */ public String getExportBucketArn() { return this.exportBucketArn; } /** *

* S3 bucket ARN to export Source Network templates. *

* * @param exportBucketArn * S3 bucket ARN to export Source Network templates. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withExportBucketArn(String exportBucketArn) { setExportBucketArn(exportBucketArn); return this; } /** *

* ID of the Launch Configuration Template. *

* * @param launchConfigurationTemplateID * ID of the Launch Configuration Template. */ public void setLaunchConfigurationTemplateID(String launchConfigurationTemplateID) { this.launchConfigurationTemplateID = launchConfigurationTemplateID; } /** *

* ID of the Launch Configuration Template. *

* * @return ID of the Launch Configuration Template. */ public String getLaunchConfigurationTemplateID() { return this.launchConfigurationTemplateID; } /** *

* ID of the Launch Configuration Template. *

* * @param launchConfigurationTemplateID * ID of the Launch Configuration Template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withLaunchConfigurationTemplateID(String launchConfigurationTemplateID) { setLaunchConfigurationTemplateID(launchConfigurationTemplateID); return this; } /** *

* Launch disposition. *

* * @param launchDisposition * Launch disposition. * @see LaunchDisposition */ public void setLaunchDisposition(String launchDisposition) { this.launchDisposition = launchDisposition; } /** *

* Launch disposition. *

* * @return Launch disposition. * @see LaunchDisposition */ public String getLaunchDisposition() { return this.launchDisposition; } /** *

* Launch disposition. *

* * @param launchDisposition * Launch disposition. * @return Returns a reference to this object so that method calls can be chained together. * @see LaunchDisposition */ public LaunchConfigurationTemplate withLaunchDisposition(String launchDisposition) { setLaunchDisposition(launchDisposition); return this; } /** *

* Launch disposition. *

* * @param launchDisposition * Launch disposition. * @return Returns a reference to this object so that method calls can be chained together. * @see LaunchDisposition */ public LaunchConfigurationTemplate withLaunchDisposition(LaunchDisposition launchDisposition) { this.launchDisposition = launchDisposition.toString(); return this; } /** *

* Licensing. *

* * @param licensing * Licensing. */ public void setLicensing(Licensing licensing) { this.licensing = licensing; } /** *

* Licensing. *

* * @return Licensing. */ public Licensing getLicensing() { return this.licensing; } /** *

* Licensing. *

* * @param licensing * Licensing. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withLicensing(Licensing licensing) { setLicensing(licensing); return this; } /** *

* Tags of the Launch Configuration Template. *

* * @return Tags of the Launch Configuration Template. */ public java.util.Map getTags() { return tags; } /** *

* Tags of the Launch Configuration Template. *

* * @param tags * Tags of the Launch Configuration Template. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Tags of the Launch Configuration Template. *

* * @param tags * Tags of the Launch Configuration Template. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see LaunchConfigurationTemplate#withTags * @returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchConfigurationTemplate clearTagsEntries() { this.tags = null; return this; } /** *

* Target instance type right-sizing method. *

* * @param targetInstanceTypeRightSizingMethod * Target instance type right-sizing method. * @see TargetInstanceTypeRightSizingMethod */ public void setTargetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) { this.targetInstanceTypeRightSizingMethod = targetInstanceTypeRightSizingMethod; } /** *

* Target instance type right-sizing method. *

* * @return Target instance type right-sizing method. * @see TargetInstanceTypeRightSizingMethod */ public String getTargetInstanceTypeRightSizingMethod() { return this.targetInstanceTypeRightSizingMethod; } /** *

* Target instance type right-sizing method. *

* * @param targetInstanceTypeRightSizingMethod * Target instance type right-sizing method. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetInstanceTypeRightSizingMethod */ public LaunchConfigurationTemplate withTargetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) { setTargetInstanceTypeRightSizingMethod(targetInstanceTypeRightSizingMethod); return this; } /** *

* Target instance type right-sizing method. *

* * @param targetInstanceTypeRightSizingMethod * Target instance type right-sizing method. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetInstanceTypeRightSizingMethod */ public LaunchConfigurationTemplate withTargetInstanceTypeRightSizingMethod(TargetInstanceTypeRightSizingMethod targetInstanceTypeRightSizingMethod) { this.targetInstanceTypeRightSizingMethod = targetInstanceTypeRightSizingMethod.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCopyPrivateIp() != null) sb.append("CopyPrivateIp: ").append(getCopyPrivateIp()).append(","); if (getCopyTags() != null) sb.append("CopyTags: ").append(getCopyTags()).append(","); if (getExportBucketArn() != null) sb.append("ExportBucketArn: ").append(getExportBucketArn()).append(","); if (getLaunchConfigurationTemplateID() != null) sb.append("LaunchConfigurationTemplateID: ").append(getLaunchConfigurationTemplateID()).append(","); if (getLaunchDisposition() != null) sb.append("LaunchDisposition: ").append(getLaunchDisposition()).append(","); if (getLicensing() != null) sb.append("Licensing: ").append(getLicensing()).append(","); if (getTags() != null) sb.append("Tags: ").append("***Sensitive Data Redacted***").append(","); if (getTargetInstanceTypeRightSizingMethod() != null) sb.append("TargetInstanceTypeRightSizingMethod: ").append(getTargetInstanceTypeRightSizingMethod()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof LaunchConfigurationTemplate == false) return false; LaunchConfigurationTemplate other = (LaunchConfigurationTemplate) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getCopyPrivateIp() == null ^ this.getCopyPrivateIp() == null) return false; if (other.getCopyPrivateIp() != null && other.getCopyPrivateIp().equals(this.getCopyPrivateIp()) == false) return false; if (other.getCopyTags() == null ^ this.getCopyTags() == null) return false; if (other.getCopyTags() != null && other.getCopyTags().equals(this.getCopyTags()) == false) return false; if (other.getExportBucketArn() == null ^ this.getExportBucketArn() == null) return false; if (other.getExportBucketArn() != null && other.getExportBucketArn().equals(this.getExportBucketArn()) == false) return false; if (other.getLaunchConfigurationTemplateID() == null ^ this.getLaunchConfigurationTemplateID() == null) return false; if (other.getLaunchConfigurationTemplateID() != null && other.getLaunchConfigurationTemplateID().equals(this.getLaunchConfigurationTemplateID()) == false) return false; if (other.getLaunchDisposition() == null ^ this.getLaunchDisposition() == null) return false; if (other.getLaunchDisposition() != null && other.getLaunchDisposition().equals(this.getLaunchDisposition()) == false) return false; if (other.getLicensing() == null ^ this.getLicensing() == null) return false; if (other.getLicensing() != null && other.getLicensing().equals(this.getLicensing()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getTargetInstanceTypeRightSizingMethod() == null ^ this.getTargetInstanceTypeRightSizingMethod() == null) return false; if (other.getTargetInstanceTypeRightSizingMethod() != null && other.getTargetInstanceTypeRightSizingMethod().equals(this.getTargetInstanceTypeRightSizingMethod()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCopyPrivateIp() == null) ? 0 : getCopyPrivateIp().hashCode()); hashCode = prime * hashCode + ((getCopyTags() == null) ? 0 : getCopyTags().hashCode()); hashCode = prime * hashCode + ((getExportBucketArn() == null) ? 0 : getExportBucketArn().hashCode()); hashCode = prime * hashCode + ((getLaunchConfigurationTemplateID() == null) ? 0 : getLaunchConfigurationTemplateID().hashCode()); hashCode = prime * hashCode + ((getLaunchDisposition() == null) ? 0 : getLaunchDisposition().hashCode()); hashCode = prime * hashCode + ((getLicensing() == null) ? 0 : getLicensing().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getTargetInstanceTypeRightSizingMethod() == null) ? 0 : getTargetInstanceTypeRightSizingMethod().hashCode()); return hashCode; } @Override public LaunchConfigurationTemplate clone() { try { return (LaunchConfigurationTemplate) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.drs.model.transform.LaunchConfigurationTemplateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy