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

com.amazonaws.services.synthetics.model.RuntimeVersion Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Synthetics module holds the client classes that are used for communicating with Synthetics Service

There is a newer version: 1.12.772
Show 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.synthetics.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* This structure contains information about one canary runtime version. For more information about runtime versions, * see * Canary Runtime Versions. *

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

* The name of the runtime version. For a list of valid runtime versions, see * Canary Runtime Versions. *

*/ private String versionName; /** *

* A description of the runtime version, created by Amazon. *

*/ private String description; /** *

* The date that the runtime version was released. *

*/ private java.util.Date releaseDate; /** *

* If this runtime version is deprecated, this value is the date of deprecation. *

*/ private java.util.Date deprecationDate; /** *

* The name of the runtime version. For a list of valid runtime versions, see * Canary Runtime Versions. *

* * @param versionName * The name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions. */ public void setVersionName(String versionName) { this.versionName = versionName; } /** *

* The name of the runtime version. For a list of valid runtime versions, see * Canary Runtime Versions. *

* * @return The name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions. */ public String getVersionName() { return this.versionName; } /** *

* The name of the runtime version. For a list of valid runtime versions, see * Canary Runtime Versions. *

* * @param versionName * The name of the runtime version. For a list of valid runtime versions, see Canary Runtime Versions. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeVersion withVersionName(String versionName) { setVersionName(versionName); return this; } /** *

* A description of the runtime version, created by Amazon. *

* * @param description * A description of the runtime version, created by Amazon. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the runtime version, created by Amazon. *

* * @return A description of the runtime version, created by Amazon. */ public String getDescription() { return this.description; } /** *

* A description of the runtime version, created by Amazon. *

* * @param description * A description of the runtime version, created by Amazon. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeVersion withDescription(String description) { setDescription(description); return this; } /** *

* The date that the runtime version was released. *

* * @param releaseDate * The date that the runtime version was released. */ public void setReleaseDate(java.util.Date releaseDate) { this.releaseDate = releaseDate; } /** *

* The date that the runtime version was released. *

* * @return The date that the runtime version was released. */ public java.util.Date getReleaseDate() { return this.releaseDate; } /** *

* The date that the runtime version was released. *

* * @param releaseDate * The date that the runtime version was released. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeVersion withReleaseDate(java.util.Date releaseDate) { setReleaseDate(releaseDate); return this; } /** *

* If this runtime version is deprecated, this value is the date of deprecation. *

* * @param deprecationDate * If this runtime version is deprecated, this value is the date of deprecation. */ public void setDeprecationDate(java.util.Date deprecationDate) { this.deprecationDate = deprecationDate; } /** *

* If this runtime version is deprecated, this value is the date of deprecation. *

* * @return If this runtime version is deprecated, this value is the date of deprecation. */ public java.util.Date getDeprecationDate() { return this.deprecationDate; } /** *

* If this runtime version is deprecated, this value is the date of deprecation. *

* * @param deprecationDate * If this runtime version is deprecated, this value is the date of deprecation. * @return Returns a reference to this object so that method calls can be chained together. */ public RuntimeVersion withDeprecationDate(java.util.Date deprecationDate) { setDeprecationDate(deprecationDate); 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 (getVersionName() != null) sb.append("VersionName: ").append(getVersionName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getReleaseDate() != null) sb.append("ReleaseDate: ").append(getReleaseDate()).append(","); if (getDeprecationDate() != null) sb.append("DeprecationDate: ").append(getDeprecationDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RuntimeVersion == false) return false; RuntimeVersion other = (RuntimeVersion) obj; if (other.getVersionName() == null ^ this.getVersionName() == null) return false; if (other.getVersionName() != null && other.getVersionName().equals(this.getVersionName()) == 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.getReleaseDate() == null ^ this.getReleaseDate() == null) return false; if (other.getReleaseDate() != null && other.getReleaseDate().equals(this.getReleaseDate()) == false) return false; if (other.getDeprecationDate() == null ^ this.getDeprecationDate() == null) return false; if (other.getDeprecationDate() != null && other.getDeprecationDate().equals(this.getDeprecationDate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVersionName() == null) ? 0 : getVersionName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getReleaseDate() == null) ? 0 : getReleaseDate().hashCode()); hashCode = prime * hashCode + ((getDeprecationDate() == null) ? 0 : getDeprecationDate().hashCode()); return hashCode; } @Override public RuntimeVersion clone() { try { return (RuntimeVersion) 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.synthetics.model.transform.RuntimeVersionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy