
com.amazonaws.services.appconfig.model.HostedConfigurationVersionSummary Maven / Gradle / Ivy
/*
* Copyright 2018-2023 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.appconfig.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information about the configuration.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class HostedConfigurationVersionSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The application ID.
*
*/
private String applicationId;
/**
*
* The configuration profile ID.
*
*/
private String configurationProfileId;
/**
*
* The configuration version.
*
*/
private Integer versionNumber;
/**
*
* A description of the configuration.
*
*/
private String description;
/**
*
* A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
*
*/
private String contentType;
/**
*
* A user-defined label for an AppConfig hosted configuration version.
*
*/
private String versionLabel;
/**
*
* The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the
* configuration data in the AppConfig hosted configuration store.
*
*/
private String kmsKeyArn;
/**
*
* The application ID.
*
*
* @param applicationId
* The application ID.
*/
public void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
/**
*
* The application ID.
*
*
* @return The application ID.
*/
public String getApplicationId() {
return this.applicationId;
}
/**
*
* The application ID.
*
*
* @param applicationId
* The application ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withApplicationId(String applicationId) {
setApplicationId(applicationId);
return this;
}
/**
*
* The configuration profile ID.
*
*
* @param configurationProfileId
* The configuration profile ID.
*/
public void setConfigurationProfileId(String configurationProfileId) {
this.configurationProfileId = configurationProfileId;
}
/**
*
* The configuration profile ID.
*
*
* @return The configuration profile ID.
*/
public String getConfigurationProfileId() {
return this.configurationProfileId;
}
/**
*
* The configuration profile ID.
*
*
* @param configurationProfileId
* The configuration profile ID.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withConfigurationProfileId(String configurationProfileId) {
setConfigurationProfileId(configurationProfileId);
return this;
}
/**
*
* The configuration version.
*
*
* @param versionNumber
* The configuration version.
*/
public void setVersionNumber(Integer versionNumber) {
this.versionNumber = versionNumber;
}
/**
*
* The configuration version.
*
*
* @return The configuration version.
*/
public Integer getVersionNumber() {
return this.versionNumber;
}
/**
*
* The configuration version.
*
*
* @param versionNumber
* The configuration version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withVersionNumber(Integer versionNumber) {
setVersionNumber(versionNumber);
return this;
}
/**
*
* A description of the configuration.
*
*
* @param description
* A description of the configuration.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description of the configuration.
*
*
* @return A description of the configuration.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description of the configuration.
*
*
* @param description
* A description of the configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
*
*
* @param contentType
* A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
*/
public void setContentType(String contentType) {
this.contentType = contentType;
}
/**
*
* A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
*
*
* @return A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
*/
public String getContentType() {
return this.contentType;
}
/**
*
* A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
*
*
* @param contentType
* A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withContentType(String contentType) {
setContentType(contentType);
return this;
}
/**
*
* A user-defined label for an AppConfig hosted configuration version.
*
*
* @param versionLabel
* A user-defined label for an AppConfig hosted configuration version.
*/
public void setVersionLabel(String versionLabel) {
this.versionLabel = versionLabel;
}
/**
*
* A user-defined label for an AppConfig hosted configuration version.
*
*
* @return A user-defined label for an AppConfig hosted configuration version.
*/
public String getVersionLabel() {
return this.versionLabel;
}
/**
*
* A user-defined label for an AppConfig hosted configuration version.
*
*
* @param versionLabel
* A user-defined label for an AppConfig hosted configuration version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withVersionLabel(String versionLabel) {
setVersionLabel(versionLabel);
return this;
}
/**
*
* The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the
* configuration data in the AppConfig hosted configuration store.
*
*
* @param kmsKeyArn
* The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version
* of the configuration data in the AppConfig hosted configuration store.
*/
public void setKmsKeyArn(String kmsKeyArn) {
this.kmsKeyArn = kmsKeyArn;
}
/**
*
* The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the
* configuration data in the AppConfig hosted configuration store.
*
*
* @return The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version
* of the configuration data in the AppConfig hosted configuration store.
*/
public String getKmsKeyArn() {
return this.kmsKeyArn;
}
/**
*
* The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the
* configuration data in the AppConfig hosted configuration store.
*
*
* @param kmsKeyArn
* The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version
* of the configuration data in the AppConfig hosted configuration store.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public HostedConfigurationVersionSummary withKmsKeyArn(String kmsKeyArn) {
setKmsKeyArn(kmsKeyArn);
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 (getConfigurationProfileId() != null)
sb.append("ConfigurationProfileId: ").append(getConfigurationProfileId()).append(",");
if (getVersionNumber() != null)
sb.append("VersionNumber: ").append(getVersionNumber()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getContentType() != null)
sb.append("ContentType: ").append(getContentType()).append(",");
if (getVersionLabel() != null)
sb.append("VersionLabel: ").append(getVersionLabel()).append(",");
if (getKmsKeyArn() != null)
sb.append("KmsKeyArn: ").append(getKmsKeyArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof HostedConfigurationVersionSummary == false)
return false;
HostedConfigurationVersionSummary other = (HostedConfigurationVersionSummary) obj;
if (other.getApplicationId() == null ^ this.getApplicationId() == null)
return false;
if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false)
return false;
if (other.getConfigurationProfileId() == null ^ this.getConfigurationProfileId() == null)
return false;
if (other.getConfigurationProfileId() != null && other.getConfigurationProfileId().equals(this.getConfigurationProfileId()) == false)
return false;
if (other.getVersionNumber() == null ^ this.getVersionNumber() == null)
return false;
if (other.getVersionNumber() != null && other.getVersionNumber().equals(this.getVersionNumber()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getContentType() == null ^ this.getContentType() == null)
return false;
if (other.getContentType() != null && other.getContentType().equals(this.getContentType()) == false)
return false;
if (other.getVersionLabel() == null ^ this.getVersionLabel() == null)
return false;
if (other.getVersionLabel() != null && other.getVersionLabel().equals(this.getVersionLabel()) == false)
return false;
if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null)
return false;
if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == 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 + ((getConfigurationProfileId() == null) ? 0 : getConfigurationProfileId().hashCode());
hashCode = prime * hashCode + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getContentType() == null) ? 0 : getContentType().hashCode());
hashCode = prime * hashCode + ((getVersionLabel() == null) ? 0 : getVersionLabel().hashCode());
hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode());
return hashCode;
}
@Override
public HostedConfigurationVersionSummary clone() {
try {
return (HostedConfigurationVersionSummary) 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.appconfig.model.transform.HostedConfigurationVersionSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}