com.amazonaws.services.mgn.model.UpdateLaunchConfigurationRequest 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 UpdateLaunchConfigurationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Update Launch configuration Account ID.
*
*/
private String accountID;
/**
*
* Update Launch configuration boot mode request.
*
*/
private String bootMode;
/**
*
* Update Launch configuration copy Private IP request.
*
*/
private Boolean copyPrivateIp;
/**
*
* Update Launch configuration copy Tags request.
*
*/
private Boolean copyTags;
/**
*
* Enable map auto tagging.
*
*/
private Boolean enableMapAutoTagging;
/**
*
* Update Launch configuration launch disposition request.
*
*/
private String launchDisposition;
/**
*
* Update Launch configuration licensing request.
*
*/
private Licensing licensing;
/**
*
* Launch configuration map auto tagging MPE ID.
*
*/
private String mapAutoTaggingMpeID;
/**
*
* Update Launch configuration name request.
*
*/
private String name;
private PostLaunchActions postLaunchActions;
/**
*
* Update Launch configuration by Source Server ID request.
*
*/
private String sourceServerID;
/**
*
* Update Launch configuration Target instance right sizing request.
*
*/
private String targetInstanceTypeRightSizingMethod;
/**
*
* Update Launch configuration Account ID.
*
*
* @param accountID
* Update Launch configuration Account ID.
*/
public void setAccountID(String accountID) {
this.accountID = accountID;
}
/**
*
* Update Launch configuration Account ID.
*
*
* @return Update Launch configuration Account ID.
*/
public String getAccountID() {
return this.accountID;
}
/**
*
* Update Launch configuration Account ID.
*
*
* @param accountID
* Update Launch configuration Account ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withAccountID(String accountID) {
setAccountID(accountID);
return this;
}
/**
*
* Update Launch configuration boot mode request.
*
*
* @param bootMode
* Update Launch configuration boot mode request.
* @see BootMode
*/
public void setBootMode(String bootMode) {
this.bootMode = bootMode;
}
/**
*
* Update Launch configuration boot mode request.
*
*
* @return Update Launch configuration boot mode request.
* @see BootMode
*/
public String getBootMode() {
return this.bootMode;
}
/**
*
* Update Launch configuration boot mode request.
*
*
* @param bootMode
* Update Launch configuration boot mode request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BootMode
*/
public UpdateLaunchConfigurationRequest withBootMode(String bootMode) {
setBootMode(bootMode);
return this;
}
/**
*
* Update Launch configuration boot mode request.
*
*
* @param bootMode
* Update Launch configuration boot mode request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see BootMode
*/
public UpdateLaunchConfigurationRequest withBootMode(BootMode bootMode) {
this.bootMode = bootMode.toString();
return this;
}
/**
*
* Update Launch configuration copy Private IP request.
*
*
* @param copyPrivateIp
* Update Launch configuration copy Private IP request.
*/
public void setCopyPrivateIp(Boolean copyPrivateIp) {
this.copyPrivateIp = copyPrivateIp;
}
/**
*
* Update Launch configuration copy Private IP request.
*
*
* @return Update Launch configuration copy Private IP request.
*/
public Boolean getCopyPrivateIp() {
return this.copyPrivateIp;
}
/**
*
* Update Launch configuration copy Private IP request.
*
*
* @param copyPrivateIp
* Update Launch configuration copy Private IP request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withCopyPrivateIp(Boolean copyPrivateIp) {
setCopyPrivateIp(copyPrivateIp);
return this;
}
/**
*
* Update Launch configuration copy Private IP request.
*
*
* @return Update Launch configuration copy Private IP request.
*/
public Boolean isCopyPrivateIp() {
return this.copyPrivateIp;
}
/**
*
* Update Launch configuration copy Tags request.
*
*
* @param copyTags
* Update Launch configuration copy Tags request.
*/
public void setCopyTags(Boolean copyTags) {
this.copyTags = copyTags;
}
/**
*
* Update Launch configuration copy Tags request.
*
*
* @return Update Launch configuration copy Tags request.
*/
public Boolean getCopyTags() {
return this.copyTags;
}
/**
*
* Update Launch configuration copy Tags request.
*
*
* @param copyTags
* Update Launch configuration copy Tags request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withCopyTags(Boolean copyTags) {
setCopyTags(copyTags);
return this;
}
/**
*
* Update Launch configuration copy Tags request.
*
*
* @return Update Launch configuration copy Tags request.
*/
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 UpdateLaunchConfigurationRequest withEnableMapAutoTagging(Boolean enableMapAutoTagging) {
setEnableMapAutoTagging(enableMapAutoTagging);
return this;
}
/**
*
* Enable map auto tagging.
*
*
* @return Enable map auto tagging.
*/
public Boolean isEnableMapAutoTagging() {
return this.enableMapAutoTagging;
}
/**
*
* Update Launch configuration launch disposition request.
*
*
* @param launchDisposition
* Update Launch configuration launch disposition request.
* @see LaunchDisposition
*/
public void setLaunchDisposition(String launchDisposition) {
this.launchDisposition = launchDisposition;
}
/**
*
* Update Launch configuration launch disposition request.
*
*
* @return Update Launch configuration launch disposition request.
* @see LaunchDisposition
*/
public String getLaunchDisposition() {
return this.launchDisposition;
}
/**
*
* Update Launch configuration launch disposition request.
*
*
* @param launchDisposition
* Update Launch configuration launch disposition request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LaunchDisposition
*/
public UpdateLaunchConfigurationRequest withLaunchDisposition(String launchDisposition) {
setLaunchDisposition(launchDisposition);
return this;
}
/**
*
* Update Launch configuration launch disposition request.
*
*
* @param launchDisposition
* Update Launch configuration launch disposition request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see LaunchDisposition
*/
public UpdateLaunchConfigurationRequest withLaunchDisposition(LaunchDisposition launchDisposition) {
this.launchDisposition = launchDisposition.toString();
return this;
}
/**
*
* Update Launch configuration licensing request.
*
*
* @param licensing
* Update Launch configuration licensing request.
*/
public void setLicensing(Licensing licensing) {
this.licensing = licensing;
}
/**
*
* Update Launch configuration licensing request.
*
*
* @return Update Launch configuration licensing request.
*/
public Licensing getLicensing() {
return this.licensing;
}
/**
*
* Update Launch configuration licensing request.
*
*
* @param licensing
* Update Launch configuration licensing request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withLicensing(Licensing licensing) {
setLicensing(licensing);
return this;
}
/**
*
* Launch configuration map auto tagging MPE ID.
*
*
* @param mapAutoTaggingMpeID
* Launch configuration map auto tagging MPE ID.
*/
public void setMapAutoTaggingMpeID(String mapAutoTaggingMpeID) {
this.mapAutoTaggingMpeID = mapAutoTaggingMpeID;
}
/**
*
* Launch configuration map auto tagging MPE ID.
*
*
* @return Launch configuration map auto tagging MPE ID.
*/
public String getMapAutoTaggingMpeID() {
return this.mapAutoTaggingMpeID;
}
/**
*
* Launch configuration map auto tagging MPE ID.
*
*
* @param mapAutoTaggingMpeID
* Launch configuration map auto tagging MPE ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withMapAutoTaggingMpeID(String mapAutoTaggingMpeID) {
setMapAutoTaggingMpeID(mapAutoTaggingMpeID);
return this;
}
/**
*
* Update Launch configuration name request.
*
*
* @param name
* Update Launch configuration name request.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* Update Launch configuration name request.
*
*
* @return Update Launch configuration name request.
*/
public String getName() {
return this.name;
}
/**
*
* Update Launch configuration name request.
*
*
* @param name
* Update Launch configuration name request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withName(String name) {
setName(name);
return this;
}
/**
* @param postLaunchActions
*/
public void setPostLaunchActions(PostLaunchActions postLaunchActions) {
this.postLaunchActions = postLaunchActions;
}
/**
* @return
*/
public PostLaunchActions getPostLaunchActions() {
return this.postLaunchActions;
}
/**
* @param postLaunchActions
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withPostLaunchActions(PostLaunchActions postLaunchActions) {
setPostLaunchActions(postLaunchActions);
return this;
}
/**
*
* Update Launch configuration by Source Server ID request.
*
*
* @param sourceServerID
* Update Launch configuration by Source Server ID request.
*/
public void setSourceServerID(String sourceServerID) {
this.sourceServerID = sourceServerID;
}
/**
*
* Update Launch configuration by Source Server ID request.
*
*
* @return Update Launch configuration by Source Server ID request.
*/
public String getSourceServerID() {
return this.sourceServerID;
}
/**
*
* Update Launch configuration by Source Server ID request.
*
*
* @param sourceServerID
* Update Launch configuration by Source Server ID request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateLaunchConfigurationRequest withSourceServerID(String sourceServerID) {
setSourceServerID(sourceServerID);
return this;
}
/**
*
* Update Launch configuration Target instance right sizing request.
*
*
* @param targetInstanceTypeRightSizingMethod
* Update Launch configuration Target instance right sizing request.
* @see TargetInstanceTypeRightSizingMethod
*/
public void setTargetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) {
this.targetInstanceTypeRightSizingMethod = targetInstanceTypeRightSizingMethod;
}
/**
*
* Update Launch configuration Target instance right sizing request.
*
*
* @return Update Launch configuration Target instance right sizing request.
* @see TargetInstanceTypeRightSizingMethod
*/
public String getTargetInstanceTypeRightSizingMethod() {
return this.targetInstanceTypeRightSizingMethod;
}
/**
*
* Update Launch configuration Target instance right sizing request.
*
*
* @param targetInstanceTypeRightSizingMethod
* Update Launch configuration Target instance right sizing request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TargetInstanceTypeRightSizingMethod
*/
public UpdateLaunchConfigurationRequest withTargetInstanceTypeRightSizingMethod(String targetInstanceTypeRightSizingMethod) {
setTargetInstanceTypeRightSizingMethod(targetInstanceTypeRightSizingMethod);
return this;
}
/**
*
* Update Launch configuration Target instance right sizing request.
*
*
* @param targetInstanceTypeRightSizingMethod
* Update Launch configuration Target instance right sizing request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see TargetInstanceTypeRightSizingMethod
*/
public UpdateLaunchConfigurationRequest 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 (getAccountID() != null)
sb.append("AccountID: ").append(getAccountID()).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 (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 (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getPostLaunchActions() != null)
sb.append("PostLaunchActions: ").append(getPostLaunchActions()).append(",");
if (getSourceServerID() != null)
sb.append("SourceServerID: ").append(getSourceServerID()).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 UpdateLaunchConfigurationRequest == false)
return false;
UpdateLaunchConfigurationRequest other = (UpdateLaunchConfigurationRequest) obj;
if (other.getAccountID() == null ^ this.getAccountID() == null)
return false;
if (other.getAccountID() != null && other.getAccountID().equals(this.getAccountID()) == 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.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.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == 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.getSourceServerID() == null ^ this.getSourceServerID() == null)
return false;
if (other.getSourceServerID() != null && other.getSourceServerID().equals(this.getSourceServerID()) == 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 + ((getAccountID() == null) ? 0 : getAccountID().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 + ((getLaunchDisposition() == null) ? 0 : getLaunchDisposition().hashCode());
hashCode = prime * hashCode + ((getLicensing() == null) ? 0 : getLicensing().hashCode());
hashCode = prime * hashCode + ((getMapAutoTaggingMpeID() == null) ? 0 : getMapAutoTaggingMpeID().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getPostLaunchActions() == null) ? 0 : getPostLaunchActions().hashCode());
hashCode = prime * hashCode + ((getSourceServerID() == null) ? 0 : getSourceServerID().hashCode());
hashCode = prime * hashCode + ((getTargetInstanceTypeRightSizingMethod() == null) ? 0 : getTargetInstanceTypeRightSizingMethod().hashCode());
return hashCode;
}
@Override
public UpdateLaunchConfigurationRequest clone() {
return (UpdateLaunchConfigurationRequest) super.clone();
}
}