com.amazonaws.services.mgn.model.LifeCycleLastCutover 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 2016-2021 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;
/**
*
* Lifecycle last Cutover .
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class LifeCycleLastCutover implements Serializable, Cloneable, StructuredPojo {
/**
*
* Lifecycle Cutover finalized date and time.
*
*/
private LifeCycleLastCutoverFinalized finalized;
/**
*
* Lifecycle last Cutover initiated.
*
*/
private LifeCycleLastCutoverInitiated initiated;
/**
*
* Lifecycle last Cutover reverted.
*
*/
private LifeCycleLastCutoverReverted reverted;
/**
*
* Lifecycle Cutover finalized date and time.
*
*
* @param finalized
* Lifecycle Cutover finalized date and time.
*/
public void setFinalized(LifeCycleLastCutoverFinalized finalized) {
this.finalized = finalized;
}
/**
*
* Lifecycle Cutover finalized date and time.
*
*
* @return Lifecycle Cutover finalized date and time.
*/
public LifeCycleLastCutoverFinalized getFinalized() {
return this.finalized;
}
/**
*
* Lifecycle Cutover finalized date and time.
*
*
* @param finalized
* Lifecycle Cutover finalized date and time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LifeCycleLastCutover withFinalized(LifeCycleLastCutoverFinalized finalized) {
setFinalized(finalized);
return this;
}
/**
*
* Lifecycle last Cutover initiated.
*
*
* @param initiated
* Lifecycle last Cutover initiated.
*/
public void setInitiated(LifeCycleLastCutoverInitiated initiated) {
this.initiated = initiated;
}
/**
*
* Lifecycle last Cutover initiated.
*
*
* @return Lifecycle last Cutover initiated.
*/
public LifeCycleLastCutoverInitiated getInitiated() {
return this.initiated;
}
/**
*
* Lifecycle last Cutover initiated.
*
*
* @param initiated
* Lifecycle last Cutover initiated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LifeCycleLastCutover withInitiated(LifeCycleLastCutoverInitiated initiated) {
setInitiated(initiated);
return this;
}
/**
*
* Lifecycle last Cutover reverted.
*
*
* @param reverted
* Lifecycle last Cutover reverted.
*/
public void setReverted(LifeCycleLastCutoverReverted reverted) {
this.reverted = reverted;
}
/**
*
* Lifecycle last Cutover reverted.
*
*
* @return Lifecycle last Cutover reverted.
*/
public LifeCycleLastCutoverReverted getReverted() {
return this.reverted;
}
/**
*
* Lifecycle last Cutover reverted.
*
*
* @param reverted
* Lifecycle last Cutover reverted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LifeCycleLastCutover withReverted(LifeCycleLastCutoverReverted reverted) {
setReverted(reverted);
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 (getFinalized() != null)
sb.append("Finalized: ").append(getFinalized()).append(",");
if (getInitiated() != null)
sb.append("Initiated: ").append(getInitiated()).append(",");
if (getReverted() != null)
sb.append("Reverted: ").append(getReverted());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof LifeCycleLastCutover == false)
return false;
LifeCycleLastCutover other = (LifeCycleLastCutover) obj;
if (other.getFinalized() == null ^ this.getFinalized() == null)
return false;
if (other.getFinalized() != null && other.getFinalized().equals(this.getFinalized()) == false)
return false;
if (other.getInitiated() == null ^ this.getInitiated() == null)
return false;
if (other.getInitiated() != null && other.getInitiated().equals(this.getInitiated()) == false)
return false;
if (other.getReverted() == null ^ this.getReverted() == null)
return false;
if (other.getReverted() != null && other.getReverted().equals(this.getReverted()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFinalized() == null) ? 0 : getFinalized().hashCode());
hashCode = prime * hashCode + ((getInitiated() == null) ? 0 : getInitiated().hashCode());
hashCode = prime * hashCode + ((getReverted() == null) ? 0 : getReverted().hashCode());
return hashCode;
}
@Override
public LifeCycleLastCutover clone() {
try {
return (LifeCycleLastCutover) 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.LifeCycleLastCutoverMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy