com.amazonaws.services.mgn.model.UpdateConnectorRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-mgn Show documentation
Show all versions of aws-java-sdk-mgn Show documentation
The AWS Java SDK for Application Migration module holds the client classes that are used for communicating with Application Migration Service
/*
* 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 UpdateConnectorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Update Connector request connector ID.
*
*/
private String connectorID;
/**
*
* Update Connector request name.
*
*/
private String name;
/**
*
* Update Connector request SSM command config.
*
*/
private ConnectorSsmCommandConfig ssmCommandConfig;
/**
*
* Update Connector request connector ID.
*
*
* @param connectorID
* Update Connector request connector ID.
*/
public void setConnectorID(String connectorID) {
this.connectorID = connectorID;
}
/**
*
* Update Connector request connector ID.
*
*
* @return Update Connector request connector ID.
*/
public String getConnectorID() {
return this.connectorID;
}
/**
*
* Update Connector request connector ID.
*
*
* @param connectorID
* Update Connector request connector ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectorRequest withConnectorID(String connectorID) {
setConnectorID(connectorID);
return this;
}
/**
*
* Update Connector request name.
*
*
* @param name
* Update Connector request name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* Update Connector request name.
*
*
* @return Update Connector request name.
*/
public String getName() {
return this.name;
}
/**
*
* Update Connector request name.
*
*
* @param name
* Update Connector request name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectorRequest withName(String name) {
setName(name);
return this;
}
/**
*
* Update Connector request SSM command config.
*
*
* @param ssmCommandConfig
* Update Connector request SSM command config.
*/
public void setSsmCommandConfig(ConnectorSsmCommandConfig ssmCommandConfig) {
this.ssmCommandConfig = ssmCommandConfig;
}
/**
*
* Update Connector request SSM command config.
*
*
* @return Update Connector request SSM command config.
*/
public ConnectorSsmCommandConfig getSsmCommandConfig() {
return this.ssmCommandConfig;
}
/**
*
* Update Connector request SSM command config.
*
*
* @param ssmCommandConfig
* Update Connector request SSM command config.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateConnectorRequest withSsmCommandConfig(ConnectorSsmCommandConfig ssmCommandConfig) {
setSsmCommandConfig(ssmCommandConfig);
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 (getConnectorID() != null)
sb.append("ConnectorID: ").append(getConnectorID()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getSsmCommandConfig() != null)
sb.append("SsmCommandConfig: ").append(getSsmCommandConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateConnectorRequest == false)
return false;
UpdateConnectorRequest other = (UpdateConnectorRequest) obj;
if (other.getConnectorID() == null ^ this.getConnectorID() == null)
return false;
if (other.getConnectorID() != null && other.getConnectorID().equals(this.getConnectorID()) == 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.getSsmCommandConfig() == null ^ this.getSsmCommandConfig() == null)
return false;
if (other.getSsmCommandConfig() != null && other.getSsmCommandConfig().equals(this.getSsmCommandConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConnectorID() == null) ? 0 : getConnectorID().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getSsmCommandConfig() == null) ? 0 : getSsmCommandConfig().hashCode());
return hashCode;
}
@Override
public UpdateConnectorRequest clone() {
return (UpdateConnectorRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy