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

com.amazonaws.services.mgn.model.UpdateSourceServerResult 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 UpdateSourceServerResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* Source server application ID. *

*/ private String applicationID; /** *

* Source server ARN. *

*/ private String arn; /** *

* Source Server connector action. *

*/ private SourceServerConnectorAction connectorAction; /** *

* Source server data replication info. *

*/ private DataReplicationInfo dataReplicationInfo; /** *

* Source server fqdn for action framework. *

*/ private String fqdnForActionFramework; /** *

* Source server archived status. *

*/ private Boolean isArchived; /** *

* Source server launched instance. *

*/ private LaunchedInstance launchedInstance; /** *

* Source server lifecycle state. *

*/ private LifeCycle lifeCycle; /** *

* Source server replication type. *

*/ private String replicationType; /** *

* Source server properties. *

*/ private SourceProperties sourceProperties; /** *

* Source server ID. *

*/ private String sourceServerID; /** *

* Source server Tags. *

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

* Source server user provided ID. *

*/ private String userProvidedID; /** *

* Source server vCenter client id. *

*/ private String vcenterClientID; /** *

* Source server application ID. *

* * @param applicationID * Source server application ID. */ public void setApplicationID(String applicationID) { this.applicationID = applicationID; } /** *

* Source server application ID. *

* * @return Source server application ID. */ public String getApplicationID() { return this.applicationID; } /** *

* Source server application ID. *

* * @param applicationID * Source server application ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withApplicationID(String applicationID) { setApplicationID(applicationID); return this; } /** *

* Source server ARN. *

* * @param arn * Source server ARN. */ public void setArn(String arn) { this.arn = arn; } /** *

* Source server ARN. *

* * @return Source server ARN. */ public String getArn() { return this.arn; } /** *

* Source server ARN. *

* * @param arn * Source server ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withArn(String arn) { setArn(arn); return this; } /** *

* Source Server connector action. *

* * @param connectorAction * Source Server connector action. */ public void setConnectorAction(SourceServerConnectorAction connectorAction) { this.connectorAction = connectorAction; } /** *

* Source Server connector action. *

* * @return Source Server connector action. */ public SourceServerConnectorAction getConnectorAction() { return this.connectorAction; } /** *

* Source Server connector action. *

* * @param connectorAction * Source Server connector action. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withConnectorAction(SourceServerConnectorAction connectorAction) { setConnectorAction(connectorAction); return this; } /** *

* Source server data replication info. *

* * @param dataReplicationInfo * Source server data replication info. */ public void setDataReplicationInfo(DataReplicationInfo dataReplicationInfo) { this.dataReplicationInfo = dataReplicationInfo; } /** *

* Source server data replication info. *

* * @return Source server data replication info. */ public DataReplicationInfo getDataReplicationInfo() { return this.dataReplicationInfo; } /** *

* Source server data replication info. *

* * @param dataReplicationInfo * Source server data replication info. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withDataReplicationInfo(DataReplicationInfo dataReplicationInfo) { setDataReplicationInfo(dataReplicationInfo); return this; } /** *

* Source server fqdn for action framework. *

* * @param fqdnForActionFramework * Source server fqdn for action framework. */ public void setFqdnForActionFramework(String fqdnForActionFramework) { this.fqdnForActionFramework = fqdnForActionFramework; } /** *

* Source server fqdn for action framework. *

* * @return Source server fqdn for action framework. */ public String getFqdnForActionFramework() { return this.fqdnForActionFramework; } /** *

* Source server fqdn for action framework. *

* * @param fqdnForActionFramework * Source server fqdn for action framework. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withFqdnForActionFramework(String fqdnForActionFramework) { setFqdnForActionFramework(fqdnForActionFramework); return this; } /** *

* Source server archived status. *

* * @param isArchived * Source server archived status. */ public void setIsArchived(Boolean isArchived) { this.isArchived = isArchived; } /** *

* Source server archived status. *

* * @return Source server archived status. */ public Boolean getIsArchived() { return this.isArchived; } /** *

* Source server archived status. *

* * @param isArchived * Source server archived status. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withIsArchived(Boolean isArchived) { setIsArchived(isArchived); return this; } /** *

* Source server archived status. *

* * @return Source server archived status. */ public Boolean isArchived() { return this.isArchived; } /** *

* Source server launched instance. *

* * @param launchedInstance * Source server launched instance. */ public void setLaunchedInstance(LaunchedInstance launchedInstance) { this.launchedInstance = launchedInstance; } /** *

* Source server launched instance. *

* * @return Source server launched instance. */ public LaunchedInstance getLaunchedInstance() { return this.launchedInstance; } /** *

* Source server launched instance. *

* * @param launchedInstance * Source server launched instance. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withLaunchedInstance(LaunchedInstance launchedInstance) { setLaunchedInstance(launchedInstance); return this; } /** *

* Source server lifecycle state. *

* * @param lifeCycle * Source server lifecycle state. */ public void setLifeCycle(LifeCycle lifeCycle) { this.lifeCycle = lifeCycle; } /** *

* Source server lifecycle state. *

* * @return Source server lifecycle state. */ public LifeCycle getLifeCycle() { return this.lifeCycle; } /** *

* Source server lifecycle state. *

* * @param lifeCycle * Source server lifecycle state. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withLifeCycle(LifeCycle lifeCycle) { setLifeCycle(lifeCycle); return this; } /** *

* Source server replication type. *

* * @param replicationType * Source server replication type. * @see ReplicationType */ public void setReplicationType(String replicationType) { this.replicationType = replicationType; } /** *

* Source server replication type. *

* * @return Source server replication type. * @see ReplicationType */ public String getReplicationType() { return this.replicationType; } /** *

* Source server replication type. *

* * @param replicationType * Source server replication type. * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationType */ public UpdateSourceServerResult withReplicationType(String replicationType) { setReplicationType(replicationType); return this; } /** *

* Source server replication type. *

* * @param replicationType * Source server replication type. * @return Returns a reference to this object so that method calls can be chained together. * @see ReplicationType */ public UpdateSourceServerResult withReplicationType(ReplicationType replicationType) { this.replicationType = replicationType.toString(); return this; } /** *

* Source server properties. *

* * @param sourceProperties * Source server properties. */ public void setSourceProperties(SourceProperties sourceProperties) { this.sourceProperties = sourceProperties; } /** *

* Source server properties. *

* * @return Source server properties. */ public SourceProperties getSourceProperties() { return this.sourceProperties; } /** *

* Source server properties. *

* * @param sourceProperties * Source server properties. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withSourceProperties(SourceProperties sourceProperties) { setSourceProperties(sourceProperties); return this; } /** *

* Source server ID. *

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

* Source server ID. *

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

* Source server ID. *

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

* Source server Tags. *

* * @return Source server Tags. */ public java.util.Map getTags() { return tags; } /** *

* Source server Tags. *

* * @param tags * Source server Tags. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Source server Tags. *

* * @param tags * Source server Tags. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see UpdateSourceServerResult#withTags * @returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult 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 UpdateSourceServerResult clearTagsEntries() { this.tags = null; return this; } /** *

* Source server user provided ID. *

* * @param userProvidedID * Source server user provided ID. */ public void setUserProvidedID(String userProvidedID) { this.userProvidedID = userProvidedID; } /** *

* Source server user provided ID. *

* * @return Source server user provided ID. */ public String getUserProvidedID() { return this.userProvidedID; } /** *

* Source server user provided ID. *

* * @param userProvidedID * Source server user provided ID. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withUserProvidedID(String userProvidedID) { setUserProvidedID(userProvidedID); return this; } /** *

* Source server vCenter client id. *

* * @param vcenterClientID * Source server vCenter client id. */ public void setVcenterClientID(String vcenterClientID) { this.vcenterClientID = vcenterClientID; } /** *

* Source server vCenter client id. *

* * @return Source server vCenter client id. */ public String getVcenterClientID() { return this.vcenterClientID; } /** *

* Source server vCenter client id. *

* * @param vcenterClientID * Source server vCenter client id. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateSourceServerResult withVcenterClientID(String vcenterClientID) { setVcenterClientID(vcenterClientID); 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 (getApplicationID() != null) sb.append("ApplicationID: ").append(getApplicationID()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getConnectorAction() != null) sb.append("ConnectorAction: ").append(getConnectorAction()).append(","); if (getDataReplicationInfo() != null) sb.append("DataReplicationInfo: ").append(getDataReplicationInfo()).append(","); if (getFqdnForActionFramework() != null) sb.append("FqdnForActionFramework: ").append(getFqdnForActionFramework()).append(","); if (getIsArchived() != null) sb.append("IsArchived: ").append(getIsArchived()).append(","); if (getLaunchedInstance() != null) sb.append("LaunchedInstance: ").append(getLaunchedInstance()).append(","); if (getLifeCycle() != null) sb.append("LifeCycle: ").append(getLifeCycle()).append(","); if (getReplicationType() != null) sb.append("ReplicationType: ").append(getReplicationType()).append(","); if (getSourceProperties() != null) sb.append("SourceProperties: ").append(getSourceProperties()).append(","); if (getSourceServerID() != null) sb.append("SourceServerID: ").append(getSourceServerID()).append(","); if (getTags() != null) sb.append("Tags: ").append("***Sensitive Data Redacted***").append(","); if (getUserProvidedID() != null) sb.append("UserProvidedID: ").append(getUserProvidedID()).append(","); if (getVcenterClientID() != null) sb.append("VcenterClientID: ").append(getVcenterClientID()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateSourceServerResult == false) return false; UpdateSourceServerResult other = (UpdateSourceServerResult) obj; if (other.getApplicationID() == null ^ this.getApplicationID() == null) return false; if (other.getApplicationID() != null && other.getApplicationID().equals(this.getApplicationID()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getConnectorAction() == null ^ this.getConnectorAction() == null) return false; if (other.getConnectorAction() != null && other.getConnectorAction().equals(this.getConnectorAction()) == false) return false; if (other.getDataReplicationInfo() == null ^ this.getDataReplicationInfo() == null) return false; if (other.getDataReplicationInfo() != null && other.getDataReplicationInfo().equals(this.getDataReplicationInfo()) == false) return false; if (other.getFqdnForActionFramework() == null ^ this.getFqdnForActionFramework() == null) return false; if (other.getFqdnForActionFramework() != null && other.getFqdnForActionFramework().equals(this.getFqdnForActionFramework()) == false) return false; if (other.getIsArchived() == null ^ this.getIsArchived() == null) return false; if (other.getIsArchived() != null && other.getIsArchived().equals(this.getIsArchived()) == false) return false; if (other.getLaunchedInstance() == null ^ this.getLaunchedInstance() == null) return false; if (other.getLaunchedInstance() != null && other.getLaunchedInstance().equals(this.getLaunchedInstance()) == false) return false; if (other.getLifeCycle() == null ^ this.getLifeCycle() == null) return false; if (other.getLifeCycle() != null && other.getLifeCycle().equals(this.getLifeCycle()) == false) return false; if (other.getReplicationType() == null ^ this.getReplicationType() == null) return false; if (other.getReplicationType() != null && other.getReplicationType().equals(this.getReplicationType()) == false) return false; if (other.getSourceProperties() == null ^ this.getSourceProperties() == null) return false; if (other.getSourceProperties() != null && other.getSourceProperties().equals(this.getSourceProperties()) == 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.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getUserProvidedID() == null ^ this.getUserProvidedID() == null) return false; if (other.getUserProvidedID() != null && other.getUserProvidedID().equals(this.getUserProvidedID()) == false) return false; if (other.getVcenterClientID() == null ^ this.getVcenterClientID() == null) return false; if (other.getVcenterClientID() != null && other.getVcenterClientID().equals(this.getVcenterClientID()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationID() == null) ? 0 : getApplicationID().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getConnectorAction() == null) ? 0 : getConnectorAction().hashCode()); hashCode = prime * hashCode + ((getDataReplicationInfo() == null) ? 0 : getDataReplicationInfo().hashCode()); hashCode = prime * hashCode + ((getFqdnForActionFramework() == null) ? 0 : getFqdnForActionFramework().hashCode()); hashCode = prime * hashCode + ((getIsArchived() == null) ? 0 : getIsArchived().hashCode()); hashCode = prime * hashCode + ((getLaunchedInstance() == null) ? 0 : getLaunchedInstance().hashCode()); hashCode = prime * hashCode + ((getLifeCycle() == null) ? 0 : getLifeCycle().hashCode()); hashCode = prime * hashCode + ((getReplicationType() == null) ? 0 : getReplicationType().hashCode()); hashCode = prime * hashCode + ((getSourceProperties() == null) ? 0 : getSourceProperties().hashCode()); hashCode = prime * hashCode + ((getSourceServerID() == null) ? 0 : getSourceServerID().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getUserProvidedID() == null) ? 0 : getUserProvidedID().hashCode()); hashCode = prime * hashCode + ((getVcenterClientID() == null) ? 0 : getVcenterClientID().hashCode()); return hashCode; } @Override public UpdateSourceServerResult clone() { try { return (UpdateSourceServerResult) 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