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

com.amazonaws.services.mgn.model.VcenterClient 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

The 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;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* vCenter client. *

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

* Arn of vCenter client. *

*/ private String arn; /** *

* Datacenter name of vCenter client. *

*/ private String datacenterName; /** *

* Hostname of vCenter client . *

*/ private String hostname; /** *

* Last seen time of vCenter client. *

*/ private String lastSeenDatetime; /** *

* Tags for Source Server of vCenter client. *

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

* Tags for vCenter client. *

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

* ID of vCenter client. *

*/ private String vcenterClientID; /** *

* Vcenter UUID of vCenter client. *

*/ private String vcenterUUID; /** *

* Arn of vCenter client. *

* * @param arn * Arn of vCenter client. */ public void setArn(String arn) { this.arn = arn; } /** *

* Arn of vCenter client. *

* * @return Arn of vCenter client. */ public String getArn() { return this.arn; } /** *

* Arn of vCenter client. *

* * @param arn * Arn of vCenter client. * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withArn(String arn) { setArn(arn); return this; } /** *

* Datacenter name of vCenter client. *

* * @param datacenterName * Datacenter name of vCenter client. */ public void setDatacenterName(String datacenterName) { this.datacenterName = datacenterName; } /** *

* Datacenter name of vCenter client. *

* * @return Datacenter name of vCenter client. */ public String getDatacenterName() { return this.datacenterName; } /** *

* Datacenter name of vCenter client. *

* * @param datacenterName * Datacenter name of vCenter client. * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withDatacenterName(String datacenterName) { setDatacenterName(datacenterName); return this; } /** *

* Hostname of vCenter client . *

* * @param hostname * Hostname of vCenter client . */ public void setHostname(String hostname) { this.hostname = hostname; } /** *

* Hostname of vCenter client . *

* * @return Hostname of vCenter client . */ public String getHostname() { return this.hostname; } /** *

* Hostname of vCenter client . *

* * @param hostname * Hostname of vCenter client . * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withHostname(String hostname) { setHostname(hostname); return this; } /** *

* Last seen time of vCenter client. *

* * @param lastSeenDatetime * Last seen time of vCenter client. */ public void setLastSeenDatetime(String lastSeenDatetime) { this.lastSeenDatetime = lastSeenDatetime; } /** *

* Last seen time of vCenter client. *

* * @return Last seen time of vCenter client. */ public String getLastSeenDatetime() { return this.lastSeenDatetime; } /** *

* Last seen time of vCenter client. *

* * @param lastSeenDatetime * Last seen time of vCenter client. * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withLastSeenDatetime(String lastSeenDatetime) { setLastSeenDatetime(lastSeenDatetime); return this; } /** *

* Tags for Source Server of vCenter client. *

* * @return Tags for Source Server of vCenter client. */ public java.util.Map getSourceServerTags() { return sourceServerTags; } /** *

* Tags for Source Server of vCenter client. *

* * @param sourceServerTags * Tags for Source Server of vCenter client. */ public void setSourceServerTags(java.util.Map sourceServerTags) { this.sourceServerTags = sourceServerTags; } /** *

* Tags for Source Server of vCenter client. *

* * @param sourceServerTags * Tags for Source Server of vCenter client. * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withSourceServerTags(java.util.Map sourceServerTags) { setSourceServerTags(sourceServerTags); return this; } /** * Add a single SourceServerTags entry * * @see VcenterClient#withSourceServerTags * @returns a reference to this object so that method calls can be chained together. */ public VcenterClient addSourceServerTagsEntry(String key, String value) { if (null == this.sourceServerTags) { this.sourceServerTags = new java.util.HashMap(); } if (this.sourceServerTags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.sourceServerTags.put(key, value); return this; } /** * Removes all the entries added into SourceServerTags. * * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient clearSourceServerTagsEntries() { this.sourceServerTags = null; return this; } /** *

* Tags for vCenter client. *

* * @return Tags for vCenter client. */ public java.util.Map getTags() { return tags; } /** *

* Tags for vCenter client. *

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

* Tags for vCenter client. *

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

* ID of vCenter client. *

* * @param vcenterClientID * ID of vCenter client. */ public void setVcenterClientID(String vcenterClientID) { this.vcenterClientID = vcenterClientID; } /** *

* ID of vCenter client. *

* * @return ID of vCenter client. */ public String getVcenterClientID() { return this.vcenterClientID; } /** *

* ID of vCenter client. *

* * @param vcenterClientID * ID of vCenter client. * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withVcenterClientID(String vcenterClientID) { setVcenterClientID(vcenterClientID); return this; } /** *

* Vcenter UUID of vCenter client. *

* * @param vcenterUUID * Vcenter UUID of vCenter client. */ public void setVcenterUUID(String vcenterUUID) { this.vcenterUUID = vcenterUUID; } /** *

* Vcenter UUID of vCenter client. *

* * @return Vcenter UUID of vCenter client. */ public String getVcenterUUID() { return this.vcenterUUID; } /** *

* Vcenter UUID of vCenter client. *

* * @param vcenterUUID * Vcenter UUID of vCenter client. * @return Returns a reference to this object so that method calls can be chained together. */ public VcenterClient withVcenterUUID(String vcenterUUID) { setVcenterUUID(vcenterUUID); 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 (getDatacenterName() != null) sb.append("DatacenterName: ").append(getDatacenterName()).append(","); if (getHostname() != null) sb.append("Hostname: ").append(getHostname()).append(","); if (getLastSeenDatetime() != null) sb.append("LastSeenDatetime: ").append(getLastSeenDatetime()).append(","); if (getSourceServerTags() != null) sb.append("SourceServerTags: ").append("***Sensitive Data Redacted***").append(","); if (getTags() != null) sb.append("Tags: ").append("***Sensitive Data Redacted***").append(","); if (getVcenterClientID() != null) sb.append("VcenterClientID: ").append(getVcenterClientID()).append(","); if (getVcenterUUID() != null) sb.append("VcenterUUID: ").append(getVcenterUUID()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VcenterClient == false) return false; VcenterClient other = (VcenterClient) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getDatacenterName() == null ^ this.getDatacenterName() == null) return false; if (other.getDatacenterName() != null && other.getDatacenterName().equals(this.getDatacenterName()) == false) return false; if (other.getHostname() == null ^ this.getHostname() == null) return false; if (other.getHostname() != null && other.getHostname().equals(this.getHostname()) == false) return false; if (other.getLastSeenDatetime() == null ^ this.getLastSeenDatetime() == null) return false; if (other.getLastSeenDatetime() != null && other.getLastSeenDatetime().equals(this.getLastSeenDatetime()) == false) return false; if (other.getSourceServerTags() == null ^ this.getSourceServerTags() == null) return false; if (other.getSourceServerTags() != null && other.getSourceServerTags().equals(this.getSourceServerTags()) == 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.getVcenterClientID() == null ^ this.getVcenterClientID() == null) return false; if (other.getVcenterClientID() != null && other.getVcenterClientID().equals(this.getVcenterClientID()) == false) return false; if (other.getVcenterUUID() == null ^ this.getVcenterUUID() == null) return false; if (other.getVcenterUUID() != null && other.getVcenterUUID().equals(this.getVcenterUUID()) == 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 + ((getDatacenterName() == null) ? 0 : getDatacenterName().hashCode()); hashCode = prime * hashCode + ((getHostname() == null) ? 0 : getHostname().hashCode()); hashCode = prime * hashCode + ((getLastSeenDatetime() == null) ? 0 : getLastSeenDatetime().hashCode()); hashCode = prime * hashCode + ((getSourceServerTags() == null) ? 0 : getSourceServerTags().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getVcenterClientID() == null) ? 0 : getVcenterClientID().hashCode()); hashCode = prime * hashCode + ((getVcenterUUID() == null) ? 0 : getVcenterUUID().hashCode()); return hashCode; } @Override public VcenterClient clone() { try { return (VcenterClient) 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.mgn.model.transform.VcenterClientMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy