/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The details of a blueprint. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Blueprint implements Serializable, Cloneable, StructuredPojo { /** ** The name of the blueprint. *
*/ private String name; /** ** The description of the blueprint. *
*/ private String description; /** ** The date and time the blueprint was registered. *
*/ private java.util.Date createdOn; /** ** The date and time the blueprint was last modified. *
*/ private java.util.Date lastModifiedOn; /** ** A JSON string that indicates the list of parameter specifications for the blueprint. *
*/ private String parameterSpec; /** ** Specifies the path in Amazon S3 where the blueprint is published. *
*/ private String blueprintLocation; /** *
* Specifies a path in Amazon S3 where the blueprint is copied when you call
* CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
*
* The status of the blueprint registration. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** An error message. *
*/ private String errorMessage; /** ** When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates * the last successful blueprint definition that is available with the service. *
*/ private LastActiveDefinition lastActiveDefinition; /** ** The name of the blueprint. *
* * @param name * The name of the blueprint. */ public void setName(String name) { this.name = name; } /** ** The name of the blueprint. *
* * @return The name of the blueprint. */ public String getName() { return this.name; } /** ** The name of the blueprint. *
* * @param name * The name of the blueprint. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withName(String name) { setName(name); return this; } /** ** The description of the blueprint. *
* * @param description * The description of the blueprint. */ public void setDescription(String description) { this.description = description; } /** ** The description of the blueprint. *
* * @return The description of the blueprint. */ public String getDescription() { return this.description; } /** ** The description of the blueprint. *
* * @param description * The description of the blueprint. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withDescription(String description) { setDescription(description); return this; } /** ** The date and time the blueprint was registered. *
* * @param createdOn * The date and time the blueprint was registered. */ public void setCreatedOn(java.util.Date createdOn) { this.createdOn = createdOn; } /** ** The date and time the blueprint was registered. *
* * @return The date and time the blueprint was registered. */ public java.util.Date getCreatedOn() { return this.createdOn; } /** ** The date and time the blueprint was registered. *
* * @param createdOn * The date and time the blueprint was registered. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withCreatedOn(java.util.Date createdOn) { setCreatedOn(createdOn); return this; } /** ** The date and time the blueprint was last modified. *
* * @param lastModifiedOn * The date and time the blueprint was last modified. */ public void setLastModifiedOn(java.util.Date lastModifiedOn) { this.lastModifiedOn = lastModifiedOn; } /** ** The date and time the blueprint was last modified. *
* * @return The date and time the blueprint was last modified. */ public java.util.Date getLastModifiedOn() { return this.lastModifiedOn; } /** ** The date and time the blueprint was last modified. *
* * @param lastModifiedOn * The date and time the blueprint was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withLastModifiedOn(java.util.Date lastModifiedOn) { setLastModifiedOn(lastModifiedOn); return this; } /** ** A JSON string that indicates the list of parameter specifications for the blueprint. *
* * @param parameterSpec * A JSON string that indicates the list of parameter specifications for the blueprint. */ public void setParameterSpec(String parameterSpec) { this.parameterSpec = parameterSpec; } /** ** A JSON string that indicates the list of parameter specifications for the blueprint. *
* * @return A JSON string that indicates the list of parameter specifications for the blueprint. */ public String getParameterSpec() { return this.parameterSpec; } /** ** A JSON string that indicates the list of parameter specifications for the blueprint. *
* * @param parameterSpec * A JSON string that indicates the list of parameter specifications for the blueprint. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withParameterSpec(String parameterSpec) { setParameterSpec(parameterSpec); return this; } /** ** Specifies the path in Amazon S3 where the blueprint is published. *
* * @param blueprintLocation * Specifies the path in Amazon S3 where the blueprint is published. */ public void setBlueprintLocation(String blueprintLocation) { this.blueprintLocation = blueprintLocation; } /** ** Specifies the path in Amazon S3 where the blueprint is published. *
* * @return Specifies the path in Amazon S3 where the blueprint is published. */ public String getBlueprintLocation() { return this.blueprintLocation; } /** ** Specifies the path in Amazon S3 where the blueprint is published. *
* * @param blueprintLocation * Specifies the path in Amazon S3 where the blueprint is published. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withBlueprintLocation(String blueprintLocation) { setBlueprintLocation(blueprintLocation); return this; } /** *
* Specifies a path in Amazon S3 where the blueprint is copied when you call
* CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
*
CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
*/
public void setBlueprintServiceLocation(String blueprintServiceLocation) {
this.blueprintServiceLocation = blueprintServiceLocation;
}
/**
*
* Specifies a path in Amazon S3 where the blueprint is copied when you call
* CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
*
CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
*/
public String getBlueprintServiceLocation() {
return this.blueprintServiceLocation;
}
/**
*
* Specifies a path in Amazon S3 where the blueprint is copied when you call
* CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
*
CreateBlueprint/UpdateBlueprint
to register the blueprint in Glue.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Blueprint withBlueprintServiceLocation(String blueprintServiceLocation) {
setBlueprintServiceLocation(blueprintServiceLocation);
return this;
}
/**
* * The status of the blueprint registration. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** The status of the blueprint registration. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** The status of the blueprint registration. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** The status of the blueprint registration. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** Creating — The blueprint registration is in progress. *
** Active — The blueprint has been successfully registered. *
** Updating — An update to the blueprint registration is in progress. *
** Failed — The blueprint registration failed. *
** An error message. *
* * @param errorMessage * An error message. */ public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; } /** ** An error message. *
* * @return An error message. */ public String getErrorMessage() { return this.errorMessage; } /** ** An error message. *
* * @param errorMessage * An error message. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withErrorMessage(String errorMessage) { setErrorMessage(errorMessage); return this; } /** ** When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates * the last successful blueprint definition that is available with the service. *
* * @param lastActiveDefinition * When there are multiple versions of a blueprint and the latest version has some errors, this attribute * indicates the last successful blueprint definition that is available with the service. */ public void setLastActiveDefinition(LastActiveDefinition lastActiveDefinition) { this.lastActiveDefinition = lastActiveDefinition; } /** ** When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates * the last successful blueprint definition that is available with the service. *
* * @return When there are multiple versions of a blueprint and the latest version has some errors, this attribute * indicates the last successful blueprint definition that is available with the service. */ public LastActiveDefinition getLastActiveDefinition() { return this.lastActiveDefinition; } /** ** When there are multiple versions of a blueprint and the latest version has some errors, this attribute indicates * the last successful blueprint definition that is available with the service. *
* * @param lastActiveDefinition * When there are multiple versions of a blueprint and the latest version has some errors, this attribute * indicates the last successful blueprint definition that is available with the service. * @return Returns a reference to this object so that method calls can be chained together. */ public Blueprint withLastActiveDefinition(LastActiveDefinition lastActiveDefinition) { setLastActiveDefinition(lastActiveDefinition); 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 (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCreatedOn() != null) sb.append("CreatedOn: ").append(getCreatedOn()).append(","); if (getLastModifiedOn() != null) sb.append("LastModifiedOn: ").append(getLastModifiedOn()).append(","); if (getParameterSpec() != null) sb.append("ParameterSpec: ").append(getParameterSpec()).append(","); if (getBlueprintLocation() != null) sb.append("BlueprintLocation: ").append(getBlueprintLocation()).append(","); if (getBlueprintServiceLocation() != null) sb.append("BlueprintServiceLocation: ").append(getBlueprintServiceLocation()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getLastActiveDefinition() != null) sb.append("LastActiveDefinition: ").append(getLastActiveDefinition()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Blueprint == false) return false; Blueprint other = (Blueprint) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == 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.getCreatedOn() == null ^ this.getCreatedOn() == null) return false; if (other.getCreatedOn() != null && other.getCreatedOn().equals(this.getCreatedOn()) == false) return false; if (other.getLastModifiedOn() == null ^ this.getLastModifiedOn() == null) return false; if (other.getLastModifiedOn() != null && other.getLastModifiedOn().equals(this.getLastModifiedOn()) == false) return false; if (other.getParameterSpec() == null ^ this.getParameterSpec() == null) return false; if (other.getParameterSpec() != null && other.getParameterSpec().equals(this.getParameterSpec()) == false) return false; if (other.getBlueprintLocation() == null ^ this.getBlueprintLocation() == null) return false; if (other.getBlueprintLocation() != null && other.getBlueprintLocation().equals(this.getBlueprintLocation()) == false) return false; if (other.getBlueprintServiceLocation() == null ^ this.getBlueprintServiceLocation() == null) return false; if (other.getBlueprintServiceLocation() != null && other.getBlueprintServiceLocation().equals(this.getBlueprintServiceLocation()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == false) return false; if (other.getLastActiveDefinition() == null ^ this.getLastActiveDefinition() == null) return false; if (other.getLastActiveDefinition() != null && other.getLastActiveDefinition().equals(this.getLastActiveDefinition()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCreatedOn() == null) ? 0 : getCreatedOn().hashCode()); hashCode = prime * hashCode + ((getLastModifiedOn() == null) ? 0 : getLastModifiedOn().hashCode()); hashCode = prime * hashCode + ((getParameterSpec() == null) ? 0 : getParameterSpec().hashCode()); hashCode = prime * hashCode + ((getBlueprintLocation() == null) ? 0 : getBlueprintLocation().hashCode()); hashCode = prime * hashCode + ((getBlueprintServiceLocation() == null) ? 0 : getBlueprintServiceLocation().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getLastActiveDefinition() == null) ? 0 : getLastActiveDefinition().hashCode()); return hashCode; } @Override public Blueprint clone() { try { return (Blueprint) 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.glue.model.transform.BlueprintMarshaller.getInstance().marshall(this, protocolMarshaller); } }