com.amazonaws.services.wellarchitected.model.GetLensVersionDifferenceResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-wellarchitected Show documentation
Show all versions of aws-java-sdk-wellarchitected Show documentation
The AWS Java SDK for AWS Well-Architected Tool module holds the client classes that are used for communicating with AWS Well-Architected Tool 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.wellarchitected.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetLensVersionDifferenceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
private String lensAlias;
/**
*
* The ARN for the lens.
*
*/
private String lensArn;
/**
*
* The base version of the lens.
*
*/
private String baseLensVersion;
/**
*
* The target lens version for the lens.
*
*/
private String targetLensVersion;
/**
*
* The latest version of the lens.
*
*/
private String latestLensVersion;
private VersionDifferences versionDifferences;
/**
* @param lensAlias
*/
public void setLensAlias(String lensAlias) {
this.lensAlias = lensAlias;
}
/**
* @return
*/
public String getLensAlias() {
return this.lensAlias;
}
/**
* @param lensAlias
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLensVersionDifferenceResult withLensAlias(String lensAlias) {
setLensAlias(lensAlias);
return this;
}
/**
*
* The ARN for the lens.
*
*
* @param lensArn
* The ARN for the lens.
*/
public void setLensArn(String lensArn) {
this.lensArn = lensArn;
}
/**
*
* The ARN for the lens.
*
*
* @return The ARN for the lens.
*/
public String getLensArn() {
return this.lensArn;
}
/**
*
* The ARN for the lens.
*
*
* @param lensArn
* The ARN for the lens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLensVersionDifferenceResult withLensArn(String lensArn) {
setLensArn(lensArn);
return this;
}
/**
*
* The base version of the lens.
*
*
* @param baseLensVersion
* The base version of the lens.
*/
public void setBaseLensVersion(String baseLensVersion) {
this.baseLensVersion = baseLensVersion;
}
/**
*
* The base version of the lens.
*
*
* @return The base version of the lens.
*/
public String getBaseLensVersion() {
return this.baseLensVersion;
}
/**
*
* The base version of the lens.
*
*
* @param baseLensVersion
* The base version of the lens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLensVersionDifferenceResult withBaseLensVersion(String baseLensVersion) {
setBaseLensVersion(baseLensVersion);
return this;
}
/**
*
* The target lens version for the lens.
*
*
* @param targetLensVersion
* The target lens version for the lens.
*/
public void setTargetLensVersion(String targetLensVersion) {
this.targetLensVersion = targetLensVersion;
}
/**
*
* The target lens version for the lens.
*
*
* @return The target lens version for the lens.
*/
public String getTargetLensVersion() {
return this.targetLensVersion;
}
/**
*
* The target lens version for the lens.
*
*
* @param targetLensVersion
* The target lens version for the lens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLensVersionDifferenceResult withTargetLensVersion(String targetLensVersion) {
setTargetLensVersion(targetLensVersion);
return this;
}
/**
*
* The latest version of the lens.
*
*
* @param latestLensVersion
* The latest version of the lens.
*/
public void setLatestLensVersion(String latestLensVersion) {
this.latestLensVersion = latestLensVersion;
}
/**
*
* The latest version of the lens.
*
*
* @return The latest version of the lens.
*/
public String getLatestLensVersion() {
return this.latestLensVersion;
}
/**
*
* The latest version of the lens.
*
*
* @param latestLensVersion
* The latest version of the lens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLensVersionDifferenceResult withLatestLensVersion(String latestLensVersion) {
setLatestLensVersion(latestLensVersion);
return this;
}
/**
* @param versionDifferences
*/
public void setVersionDifferences(VersionDifferences versionDifferences) {
this.versionDifferences = versionDifferences;
}
/**
* @return
*/
public VersionDifferences getVersionDifferences() {
return this.versionDifferences;
}
/**
* @param versionDifferences
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetLensVersionDifferenceResult withVersionDifferences(VersionDifferences versionDifferences) {
setVersionDifferences(versionDifferences);
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 (getLensAlias() != null)
sb.append("LensAlias: ").append(getLensAlias()).append(",");
if (getLensArn() != null)
sb.append("LensArn: ").append(getLensArn()).append(",");
if (getBaseLensVersion() != null)
sb.append("BaseLensVersion: ").append(getBaseLensVersion()).append(",");
if (getTargetLensVersion() != null)
sb.append("TargetLensVersion: ").append(getTargetLensVersion()).append(",");
if (getLatestLensVersion() != null)
sb.append("LatestLensVersion: ").append(getLatestLensVersion()).append(",");
if (getVersionDifferences() != null)
sb.append("VersionDifferences: ").append(getVersionDifferences());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetLensVersionDifferenceResult == false)
return false;
GetLensVersionDifferenceResult other = (GetLensVersionDifferenceResult) obj;
if (other.getLensAlias() == null ^ this.getLensAlias() == null)
return false;
if (other.getLensAlias() != null && other.getLensAlias().equals(this.getLensAlias()) == false)
return false;
if (other.getLensArn() == null ^ this.getLensArn() == null)
return false;
if (other.getLensArn() != null && other.getLensArn().equals(this.getLensArn()) == false)
return false;
if (other.getBaseLensVersion() == null ^ this.getBaseLensVersion() == null)
return false;
if (other.getBaseLensVersion() != null && other.getBaseLensVersion().equals(this.getBaseLensVersion()) == false)
return false;
if (other.getTargetLensVersion() == null ^ this.getTargetLensVersion() == null)
return false;
if (other.getTargetLensVersion() != null && other.getTargetLensVersion().equals(this.getTargetLensVersion()) == false)
return false;
if (other.getLatestLensVersion() == null ^ this.getLatestLensVersion() == null)
return false;
if (other.getLatestLensVersion() != null && other.getLatestLensVersion().equals(this.getLatestLensVersion()) == false)
return false;
if (other.getVersionDifferences() == null ^ this.getVersionDifferences() == null)
return false;
if (other.getVersionDifferences() != null && other.getVersionDifferences().equals(this.getVersionDifferences()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getLensAlias() == null) ? 0 : getLensAlias().hashCode());
hashCode = prime * hashCode + ((getLensArn() == null) ? 0 : getLensArn().hashCode());
hashCode = prime * hashCode + ((getBaseLensVersion() == null) ? 0 : getBaseLensVersion().hashCode());
hashCode = prime * hashCode + ((getTargetLensVersion() == null) ? 0 : getTargetLensVersion().hashCode());
hashCode = prime * hashCode + ((getLatestLensVersion() == null) ? 0 : getLatestLensVersion().hashCode());
hashCode = prime * hashCode + ((getVersionDifferences() == null) ? 0 : getVersionDifferences().hashCode());
return hashCode;
}
@Override
public GetLensVersionDifferenceResult clone() {
try {
return (GetLensVersionDifferenceResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}