com.amazonaws.services.mgn.model.UpdateLaunchConfigurationTemplateRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-mgn Show documentation
/*
* Copyright 2019-2024 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.mgn.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 UpdateLaunchConfigurationTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Associate public Ip address.
*
*/
private Boolean associatePublicIpAddress;
/**
*
* Launch configuration template boot mode.
*
*/
private String bootMode;
/**
*
* Copy private Ip.
*
*/
private Boolean copyPrivateIp;
/**
*
* Copy tags.
*
*/
private Boolean copyTags;
/**
*
* Enable map auto tagging.
*
*/
private Boolean enableMapAutoTagging;
/**
*
* Large volume config.
*
*/
private LaunchTemplateDiskConf largeVolumeConf;
/**
*
* Launch Configuration Template ID.
*
*/
private String launchConfigurationTemplateID;
/**
*
* Launch disposition.
*
*/
private String launchDisposition;
private Licensing licensing;
/**
*
* Launch configuration template map auto tagging MPE ID.
*
*/
private String mapAutoTaggingMpeID;
/**
*
* Post Launch Action to execute on the Test or Cutover instance.
*
*/
private PostLaunchActions postLaunchActions;
/**
*
* Small volume config.
*
*/
private LaunchTemplateDiskConf smallVolumeConf;
/**
*
* Small volume maximum size.
*
*/
private Long smallVolumeMaxSize;
/**
*
* Target instance type right-sizing method.
*
*/
private String targetInstanceTypeRightSizingMethod;
/**
*
* Associate public Ip address.
*
*
* @param associatePublicIpAddress
* Associate public Ip address.
*/
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
this.associatePublicIpAddress = associatePublicIpAddress;
}
/**
*
* Associate public Ip address.
*
*
* @return Associate public Ip address.
*/
public Boolean getAssociatePublicIpAddress() {
return this.associatePublicIpAddress;
}
/**
*
* Associate public Ip address.
*
*
* @param associatePublicIpAddress
* Associate public Ip address.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
setAssociatePublicIpAddress(associatePublicIpAddress);
return this;
}
/**
*
* Associate public Ip address.
*
*
* @return Associate public Ip address.
*/
public Boolean isAssociatePublicIpAddress() {
return this.associatePublicIpAddress;
}
/**
*
* Launch configuration template boot mode.
*
*
* @param bootMode
* Launch configuration template boot mode.
* @see BootMode
*/
public void setBootMode(String bootMode) {
this.bootMode = bootMode;
}
/**
*
* Launch configuration template boot mode.
*
*
* @return Launch configuration template boot mode.
* @see BootMode
*/
public String getBootMode() {
return this.bootMode;
}
/**
*
* Launch configuration template boot mode.
*
*
* @param bootMode
* Launch configuration template boot mode.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BootMode
*/
public UpdateLaunchConfigurationTemplateRequest withBootMode(String bootMode) {
setBootMode(bootMode);
return this;
}
/**
*
* Launch configuration template boot mode.
*
*
* @param bootMode
* Launch configuration template boot mode.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BootMode
*/
public UpdateLaunchConfigurationTemplateRequest withBootMode(BootMode bootMode) {
this.bootMode = bootMode.toString();
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 UpdateLaunchConfigurationTemplateRequest 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 UpdateLaunchConfigurationTemplateRequest withCopyTags(Boolean copyTags) {
setCopyTags(copyTags);
return this;
}
/**
*
* Copy tags.
*
*
* @return Copy tags.
*/
public Boolean isCopyTags() {
return this.copyTags;
}
/**
*
* Enable map auto tagging.
*
*
* @param enableMapAutoTagging
* Enable map auto tagging.
*/
public void setEnableMapAutoTagging(Boolean enableMapAutoTagging) {
this.enableMapAutoTagging = enableMapAutoTagging;
}
/**
*
* Enable map auto tagging.
*
*
* @return Enable map auto tagging.
*/
public Boolean getEnableMapAutoTagging() {
return this.enableMapAutoTagging;
}
/**
*
* Enable map auto tagging.
*
*
* @param enableMapAutoTagging
* Enable map auto tagging.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withEnableMapAutoTagging(Boolean enableMapAutoTagging) {
setEnableMapAutoTagging(enableMapAutoTagging);
return this;
}
/**
*
* Enable map auto tagging.
*
*
* @return Enable map auto tagging.
*/
public Boolean isEnableMapAutoTagging() {
return this.enableMapAutoTagging;
}
/**
*
* Large volume config.
*
*
* @param largeVolumeConf
* Large volume config.
*/
public void setLargeVolumeConf(LaunchTemplateDiskConf largeVolumeConf) {
this.largeVolumeConf = largeVolumeConf;
}
/**
*
* Large volume config.
*
*
* @return Large volume config.
*/
public LaunchTemplateDiskConf getLargeVolumeConf() {
return this.largeVolumeConf;
}
/**
*
* Large volume config.
*
*
* @param largeVolumeConf
* Large volume config.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withLargeVolumeConf(LaunchTemplateDiskConf largeVolumeConf) {
setLargeVolumeConf(largeVolumeConf);
return this;
}
/**
*
* Launch Configuration Template ID.
*
*
* @param launchConfigurationTemplateID
* Launch Configuration Template ID.
*/
public void setLaunchConfigurationTemplateID(String launchConfigurationTemplateID) {
this.launchConfigurationTemplateID = launchConfigurationTemplateID;
}
/**
*
* Launch Configuration Template ID.
*
*
* @return Launch Configuration Template ID.
*/
public String getLaunchConfigurationTemplateID() {
return this.launchConfigurationTemplateID;
}
/**
*
* Launch Configuration Template ID.
*
*
* @param launchConfigurationTemplateID
* Launch Configuration Template ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest 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 UpdateLaunchConfigurationTemplateRequest 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 UpdateLaunchConfigurationTemplateRequest withLaunchDisposition(LaunchDisposition launchDisposition) {
this.launchDisposition = launchDisposition.toString();
return this;
}
/**
* @param licensing
*/
public void setLicensing(Licensing licensing) {
this.licensing = licensing;
}
/**
* @return
*/
public Licensing getLicensing() {
return this.licensing;
}
/**
* @param licensing
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withLicensing(Licensing licensing) {
setLicensing(licensing);
return this;
}
/**
*
* Launch configuration template map auto tagging MPE ID.
*
*
* @param mapAutoTaggingMpeID
* Launch configuration template map auto tagging MPE ID.
*/
public void setMapAutoTaggingMpeID(String mapAutoTaggingMpeID) {
this.mapAutoTaggingMpeID = mapAutoTaggingMpeID;
}
/**
*
* Launch configuration template map auto tagging MPE ID.
*
*
* @return Launch configuration template map auto tagging MPE ID.
*/
public String getMapAutoTaggingMpeID() {
return this.mapAutoTaggingMpeID;
}
/**
*
* Launch configuration template map auto tagging MPE ID.
*
*
* @param mapAutoTaggingMpeID
* Launch configuration template map auto tagging MPE ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withMapAutoTaggingMpeID(String mapAutoTaggingMpeID) {
setMapAutoTaggingMpeID(mapAutoTaggingMpeID);
return this;
}
/**
*
* Post Launch Action to execute on the Test or Cutover instance.
*
*
* @param postLaunchActions
* Post Launch Action to execute on the Test or Cutover instance.
*/
public void setPostLaunchActions(PostLaunchActions postLaunchActions) {
this.postLaunchActions = postLaunchActions;
}
/**
*
* Post Launch Action to execute on the Test or Cutover instance.
*
*
* @return Post Launch Action to execute on the Test or Cutover instance.
*/
public PostLaunchActions getPostLaunchActions() {
return this.postLaunchActions;
}
/**
*
* Post Launch Action to execute on the Test or Cutover instance.
*
*
* @param postLaunchActions
* Post Launch Action to execute on the Test or Cutover instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withPostLaunchActions(PostLaunchActions postLaunchActions) {
setPostLaunchActions(postLaunchActions);
return this;
}
/**
*
* Small volume config.
*
*
* @param smallVolumeConf
* Small volume config.
*/
public void setSmallVolumeConf(LaunchTemplateDiskConf smallVolumeConf) {
this.smallVolumeConf = smallVolumeConf;
}
/**
*
* Small volume config.
*
*
* @return Small volume config.
*/
public LaunchTemplateDiskConf getSmallVolumeConf() {
return this.smallVolumeConf;
}
/**
*
* Small volume config.
*
*
* @param smallVolumeConf
* Small volume config.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withSmallVolumeConf(LaunchTemplateDiskConf smallVolumeConf) {
setSmallVolumeConf(smallVolumeConf);
return this;
}
/**
*
* Small volume maximum size.
*
*
* @param smallVolumeMaxSize
* Small volume maximum size.
*/
public void setSmallVolumeMaxSize(Long smallVolumeMaxSize) {
this.smallVolumeMaxSize = smallVolumeMaxSize;
}
/**
*
* Small volume maximum size.
*
*
* @return Small volume maximum size.
*/
public Long getSmallVolumeMaxSize() {
return this.smallVolumeMaxSize;
}
/**
*
* Small volume maximum size.
*
*
* @param smallVolumeMaxSize
* Small volume maximum size.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationTemplateRequest withSmallVolumeMaxSize(Long smallVolumeMaxSize) {
setSmallVolumeMaxSize(smallVolumeMaxSize);
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 UpdateLaunchConfigurationTemplateRequest 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 UpdateLaunchConfigurationTemplateRequest 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 (getAssociatePublicIpAddress() != null)
sb.append("AssociatePublicIpAddress: ").append(getAssociatePublicIpAddress()).append(",");
if (getBootMode() != null)
sb.append("BootMode: ").append(getBootMode()).append(",");
if (getCopyPrivateIp() != null)
sb.append("CopyPrivateIp: ").append(getCopyPrivateIp()).append(",");
if (getCopyTags() != null)
sb.append("CopyTags: ").append(getCopyTags()).append(",");
if (getEnableMapAutoTagging() != null)
sb.append("EnableMapAutoTagging: ").append(getEnableMapAutoTagging()).append(",");
if (getLargeVolumeConf() != null)
sb.append("LargeVolumeConf: ").append(getLargeVolumeConf()).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 (getMapAutoTaggingMpeID() != null)
sb.append("MapAutoTaggingMpeID: ").append(getMapAutoTaggingMpeID()).append(",");
if (getPostLaunchActions() != null)
sb.append("PostLaunchActions: ").append(getPostLaunchActions()).append(",");
if (getSmallVolumeConf() != null)
sb.append("SmallVolumeConf: ").append(getSmallVolumeConf()).append(",");
if (getSmallVolumeMaxSize() != null)
sb.append("SmallVolumeMaxSize: ").append(getSmallVolumeMaxSize()).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 UpdateLaunchConfigurationTemplateRequest == false)
return false;
UpdateLaunchConfigurationTemplateRequest other = (UpdateLaunchConfigurationTemplateRequest) obj;
if (other.getAssociatePublicIpAddress() == null ^ this.getAssociatePublicIpAddress() == null)
return false;
if (other.getAssociatePublicIpAddress() != null && other.getAssociatePublicIpAddress().equals(this.getAssociatePublicIpAddress()) == false)
return false;
if (other.getBootMode() == null ^ this.getBootMode() == null)
return false;
if (other.getBootMode() != null && other.getBootMode().equals(this.getBootMode()) == 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.getEnableMapAutoTagging() == null ^ this.getEnableMapAutoTagging() == null)
return false;
if (other.getEnableMapAutoTagging() != null && other.getEnableMapAutoTagging().equals(this.getEnableMapAutoTagging()) == false)
return false;
if (other.getLargeVolumeConf() == null ^ this.getLargeVolumeConf() == null)
return false;
if (other.getLargeVolumeConf() != null && other.getLargeVolumeConf().equals(this.getLargeVolumeConf()) == 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.getMapAutoTaggingMpeID() == null ^ this.getMapAutoTaggingMpeID() == null)
return false;
if (other.getMapAutoTaggingMpeID() != null && other.getMapAutoTaggingMpeID().equals(this.getMapAutoTaggingMpeID()) == false)
return false;
if (other.getPostLaunchActions() == null ^ this.getPostLaunchActions() == null)
return false;
if (other.getPostLaunchActions() != null && other.getPostLaunchActions().equals(this.getPostLaunchActions()) == false)
return false;
if (other.getSmallVolumeConf() == null ^ this.getSmallVolumeConf() == null)
return false;
if (other.getSmallVolumeConf() != null && other.getSmallVolumeConf().equals(this.getSmallVolumeConf()) == false)
return false;
if (other.getSmallVolumeMaxSize() == null ^ this.getSmallVolumeMaxSize() == null)
return false;
if (other.getSmallVolumeMaxSize() != null && other.getSmallVolumeMaxSize().equals(this.getSmallVolumeMaxSize()) == 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 + ((getAssociatePublicIpAddress() == null) ? 0 : getAssociatePublicIpAddress().hashCode());
hashCode = prime * hashCode + ((getBootMode() == null) ? 0 : getBootMode().hashCode());
hashCode = prime * hashCode + ((getCopyPrivateIp() == null) ? 0 : getCopyPrivateIp().hashCode());
hashCode = prime * hashCode + ((getCopyTags() == null) ? 0 : getCopyTags().hashCode());
hashCode = prime * hashCode + ((getEnableMapAutoTagging() == null) ? 0 : getEnableMapAutoTagging().hashCode());
hashCode = prime * hashCode + ((getLargeVolumeConf() == null) ? 0 : getLargeVolumeConf().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 + ((getMapAutoTaggingMpeID() == null) ? 0 : getMapAutoTaggingMpeID().hashCode());
hashCode = prime * hashCode + ((getPostLaunchActions() == null) ? 0 : getPostLaunchActions().hashCode());
hashCode = prime * hashCode + ((getSmallVolumeConf() == null) ? 0 : getSmallVolumeConf().hashCode());
hashCode = prime * hashCode + ((getSmallVolumeMaxSize() == null) ? 0 : getSmallVolumeMaxSize().hashCode());
hashCode = prime * hashCode + ((getTargetInstanceTypeRightSizingMethod() == null) ? 0 : getTargetInstanceTypeRightSizingMethod().hashCode());
return hashCode;
}
@Override
public UpdateLaunchConfigurationTemplateRequest clone() {
return (UpdateLaunchConfigurationTemplateRequest) super.clone();
}
}