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

com.amazonaws.services.mgn.model.UpdateLaunchConfigurationResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Application Migration module holds the client classes that are used for communicating with Application Migration Service

There is a newer version: 1.12.778
Show newest version
/*
 * 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;

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

    /**
     * 

* Launch configuration boot mode. *

*/ private String bootMode; /** *

* Copy Private IP during Launch Configuration. *

*/ private Boolean copyPrivateIp; /** *

* Copy Tags during Launch Configuration. *

*/ private Boolean copyTags; /** *

* Launch configuration EC2 Launch template ID. *

*/ private String ec2LaunchTemplateID; /** *

* Enable map auto tagging. *

*/ private Boolean enableMapAutoTagging; /** *

* Launch disposition for launch configuration. *

*/ private String launchDisposition; /** *

* Launch configuration OS licensing. *

*/ private Licensing licensing; /** *

* Map auto tagging MPE ID. *

*/ private String mapAutoTaggingMpeID; /** *

* Launch configuration name. *

*/ private String name; private PostLaunchActions postLaunchActions; /** *

* Launch configuration Source Server ID. *

*/ private String sourceServerID; /** *

* Launch configuration Target instance type right sizing method. *

*/ private String targetInstanceTypeRightSizingMethod; /** *

* Launch configuration boot mode. *

* * @param bootMode * Launch configuration boot mode. * @see BootMode */ public void setBootMode(String bootMode) { this.bootMode = bootMode; } /** *

* Launch configuration boot mode. *

* * @return Launch configuration boot mode. * @see BootMode */ public String getBootMode() { return this.bootMode; } /** *

* Launch configuration boot mode. *

* * @param bootMode * Launch configuration boot mode. * @return Returns a reference to this object so that method calls can be chained together. * @see BootMode */ public UpdateLaunchConfigurationResult withBootMode(String bootMode) { setBootMode(bootMode); return this; } /** *

* Launch configuration boot mode. *

* * @param bootMode * Launch configuration boot mode. * @return Returns a reference to this object so that method calls can be chained together. * @see BootMode */ public UpdateLaunchConfigurationResult withBootMode(BootMode bootMode) { this.bootMode = bootMode.toString(); return this; } /** *

* Copy Private IP during Launch Configuration. *

* * @param copyPrivateIp * Copy Private IP during Launch Configuration. */ public void setCopyPrivateIp(Boolean copyPrivateIp) { this.copyPrivateIp = copyPrivateIp; } /** *

* Copy Private IP during Launch Configuration. *

* * @return Copy Private IP during Launch Configuration. */ public Boolean getCopyPrivateIp() { return this.copyPrivateIp; } /** *

* Copy Private IP during Launch Configuration. *

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

* Copy Private IP during Launch Configuration. *

* * @return Copy Private IP during Launch Configuration. */ public Boolean isCopyPrivateIp() { return this.copyPrivateIp; } /** *

* Copy Tags during Launch Configuration. *

* * @param copyTags * Copy Tags during Launch Configuration. */ public void setCopyTags(Boolean copyTags) { this.copyTags = copyTags; } /** *

* Copy Tags during Launch Configuration. *

* * @return Copy Tags during Launch Configuration. */ public Boolean getCopyTags() { return this.copyTags; } /** *

* Copy Tags during Launch Configuration. *

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

* Copy Tags during Launch Configuration. *

* * @return Copy Tags during Launch Configuration. */ public Boolean isCopyTags() { return this.copyTags; } /** *

* Launch configuration EC2 Launch template ID. *

* * @param ec2LaunchTemplateID * Launch configuration EC2 Launch template ID. */ public void setEc2LaunchTemplateID(String ec2LaunchTemplateID) { this.ec2LaunchTemplateID = ec2LaunchTemplateID; } /** *

* Launch configuration EC2 Launch template ID. *

* * @return Launch configuration EC2 Launch template ID. */ public String getEc2LaunchTemplateID() { return this.ec2LaunchTemplateID; } /** *

* Launch configuration EC2 Launch template ID. *

* * @param ec2LaunchTemplateID * Launch configuration EC2 Launch template ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLaunchConfigurationResult withEc2LaunchTemplateID(String ec2LaunchTemplateID) { setEc2LaunchTemplateID(ec2LaunchTemplateID); return this; } /** *

* 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 UpdateLaunchConfigurationResult withEnableMapAutoTagging(Boolean enableMapAutoTagging) { setEnableMapAutoTagging(enableMapAutoTagging); return this; } /** *

* Enable map auto tagging. *

* * @return Enable map auto tagging. */ public Boolean isEnableMapAutoTagging() { return this.enableMapAutoTagging; } /** *

* Launch disposition for launch configuration. *

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

* Launch disposition for launch configuration. *

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

* Launch disposition for launch configuration. *

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

* Launch disposition for launch configuration. *

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

* Launch configuration OS licensing. *

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

* Launch configuration OS licensing. *

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

* Launch configuration OS licensing. *

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

* Map auto tagging MPE ID. *

* * @param mapAutoTaggingMpeID * Map auto tagging MPE ID. */ public void setMapAutoTaggingMpeID(String mapAutoTaggingMpeID) { this.mapAutoTaggingMpeID = mapAutoTaggingMpeID; } /** *

* Map auto tagging MPE ID. *

* * @return Map auto tagging MPE ID. */ public String getMapAutoTaggingMpeID() { return this.mapAutoTaggingMpeID; } /** *

* Map auto tagging MPE ID. *

* * @param mapAutoTaggingMpeID * Map auto tagging MPE ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLaunchConfigurationResult withMapAutoTaggingMpeID(String mapAutoTaggingMpeID) { setMapAutoTaggingMpeID(mapAutoTaggingMpeID); return this; } /** *

* Launch configuration name. *

* * @param name * Launch configuration name. */ public void setName(String name) { this.name = name; } /** *

* Launch configuration name. *

* * @return Launch configuration name. */ public String getName() { return this.name; } /** *

* Launch configuration name. *

* * @param name * Launch configuration name. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLaunchConfigurationResult 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 UpdateLaunchConfigurationResult withPostLaunchActions(PostLaunchActions postLaunchActions) { setPostLaunchActions(postLaunchActions); return this; } /** *

* Launch configuration Source Server ID. *

* * @param sourceServerID * Launch configuration Source Server ID. */ public void setSourceServerID(String sourceServerID) { this.sourceServerID = sourceServerID; } /** *

* Launch configuration Source Server ID. *

* * @return Launch configuration Source Server ID. */ public String getSourceServerID() { return this.sourceServerID; } /** *

* Launch configuration Source Server ID. *

* * @param sourceServerID * Launch configuration Source Server ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateLaunchConfigurationResult withSourceServerID(String sourceServerID) { setSourceServerID(sourceServerID); return this; } /** *

* Launch configuration Target instance type right sizing method. *

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

* Launch configuration Target instance type right sizing method. *

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

* Launch configuration Target instance type right sizing method. *

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

* Launch configuration Target instance type right sizing method. *

* * @param targetInstanceTypeRightSizingMethod * Launch configuration Target instance type right sizing method. * @return Returns a reference to this object so that method calls can be chained together. * @see TargetInstanceTypeRightSizingMethod */ public UpdateLaunchConfigurationResult 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 (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 (getEc2LaunchTemplateID() != null) sb.append("Ec2LaunchTemplateID: ").append(getEc2LaunchTemplateID()).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 UpdateLaunchConfigurationResult == false) return false; UpdateLaunchConfigurationResult other = (UpdateLaunchConfigurationResult) obj; 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.getEc2LaunchTemplateID() == null ^ this.getEc2LaunchTemplateID() == null) return false; if (other.getEc2LaunchTemplateID() != null && other.getEc2LaunchTemplateID().equals(this.getEc2LaunchTemplateID()) == 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 + ((getBootMode() == null) ? 0 : getBootMode().hashCode()); hashCode = prime * hashCode + ((getCopyPrivateIp() == null) ? 0 : getCopyPrivateIp().hashCode()); hashCode = prime * hashCode + ((getCopyTags() == null) ? 0 : getCopyTags().hashCode()); hashCode = prime * hashCode + ((getEc2LaunchTemplateID() == null) ? 0 : getEc2LaunchTemplateID().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 UpdateLaunchConfigurationResult clone() { try { return (UpdateLaunchConfigurationResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy