* Function package ARN. *
*/ private String arn; /** ** ID of the function package. *
*/ private String id; /** ** Onboarding state of the function package. *
*/ private String onboardingState; /** ** Operational state of the function package. *
*/ private String operationalState; /** ** A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *
*/ private java.util.Map* Usage state of the function package. *
*/ private String usageState; /** ** Function package ARN. *
* * @param arn * Function package ARN. */ public void setArn(String arn) { this.arn = arn; } /** ** Function package ARN. *
* * @return Function package ARN. */ public String getArn() { return this.arn; } /** ** Function package ARN. *
* * @param arn * Function package ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSolFunctionPackageResult withArn(String arn) { setArn(arn); return this; } /** ** ID of the function package. *
* * @param id * ID of the function package. */ public void setId(String id) { this.id = id; } /** ** ID of the function package. *
* * @return ID of the function package. */ public String getId() { return this.id; } /** ** ID of the function package. *
* * @param id * ID of the function package. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSolFunctionPackageResult withId(String id) { setId(id); return this; } /** ** Onboarding state of the function package. *
* * @param onboardingState * Onboarding state of the function package. * @see OnboardingState */ public void setOnboardingState(String onboardingState) { this.onboardingState = onboardingState; } /** ** Onboarding state of the function package. *
* * @return Onboarding state of the function package. * @see OnboardingState */ public String getOnboardingState() { return this.onboardingState; } /** ** Onboarding state of the function package. *
* * @param onboardingState * Onboarding state of the function package. * @return Returns a reference to this object so that method calls can be chained together. * @see OnboardingState */ public CreateSolFunctionPackageResult withOnboardingState(String onboardingState) { setOnboardingState(onboardingState); return this; } /** ** Onboarding state of the function package. *
* * @param onboardingState * Onboarding state of the function package. * @return Returns a reference to this object so that method calls can be chained together. * @see OnboardingState */ public CreateSolFunctionPackageResult withOnboardingState(OnboardingState onboardingState) { this.onboardingState = onboardingState.toString(); return this; } /** ** Operational state of the function package. *
* * @param operationalState * Operational state of the function package. * @see OperationalState */ public void setOperationalState(String operationalState) { this.operationalState = operationalState; } /** ** Operational state of the function package. *
* * @return Operational state of the function package. * @see OperationalState */ public String getOperationalState() { return this.operationalState; } /** ** Operational state of the function package. *
* * @param operationalState * Operational state of the function package. * @return Returns a reference to this object so that method calls can be chained together. * @see OperationalState */ public CreateSolFunctionPackageResult withOperationalState(String operationalState) { setOperationalState(operationalState); return this; } /** ** Operational state of the function package. *
* * @param operationalState * Operational state of the function package. * @return Returns a reference to this object so that method calls can be chained together. * @see OperationalState */ public CreateSolFunctionPackageResult withOperationalState(OperationalState operationalState) { this.operationalState = operationalState.toString(); return this; } /** ** A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *
* * @return A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. */ public java.util.Map* A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *
* * @param tags * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. */ public void setTags(java.util.Map* A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an optional * value. You can use tags to search and filter your resources or track your Amazon Web Services costs. *
* * @param tags * A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key and an * optional value. You can use tags to search and filter your resources or track your Amazon Web Services * costs. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSolFunctionPackageResult withTags(java.util.Map* Usage state of the function package. *
* * @param usageState * Usage state of the function package. * @see UsageState */ public void setUsageState(String usageState) { this.usageState = usageState; } /** ** Usage state of the function package. *
* * @return Usage state of the function package. * @see UsageState */ public String getUsageState() { return this.usageState; } /** ** Usage state of the function package. *
* * @param usageState * Usage state of the function package. * @return Returns a reference to this object so that method calls can be chained together. * @see UsageState */ public CreateSolFunctionPackageResult withUsageState(String usageState) { setUsageState(usageState); return this; } /** ** Usage state of the function package. *
* * @param usageState * Usage state of the function package. * @return Returns a reference to this object so that method calls can be chained together. * @see UsageState */ public CreateSolFunctionPackageResult withUsageState(UsageState usageState) { this.usageState = usageState.toString(); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getOnboardingState() != null) sb.append("OnboardingState: ").append(getOnboardingState()).append(","); if (getOperationalState() != null) sb.append("OperationalState: ").append(getOperationalState()).append(","); if (getTags() != null) sb.append("Tags: ").append("***Sensitive Data Redacted***").append(","); if (getUsageState() != null) sb.append("UsageState: ").append(getUsageState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateSolFunctionPackageResult == false) return false; CreateSolFunctionPackageResult other = (CreateSolFunctionPackageResult) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getOnboardingState() == null ^ this.getOnboardingState() == null) return false; if (other.getOnboardingState() != null && other.getOnboardingState().equals(this.getOnboardingState()) == false) return false; if (other.getOperationalState() == null ^ this.getOperationalState() == null) return false; if (other.getOperationalState() != null && other.getOperationalState().equals(this.getOperationalState()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getUsageState() == null ^ this.getUsageState() == null) return false; if (other.getUsageState() != null && other.getUsageState().equals(this.getUsageState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getOnboardingState() == null) ? 0 : getOnboardingState().hashCode()); hashCode = prime * hashCode + ((getOperationalState() == null) ? 0 : getOperationalState().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getUsageState() == null) ? 0 : getUsageState().hashCode()); return hashCode; } @Override public CreateSolFunctionPackageResult clone() { try { return (CreateSolFunctionPackageResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }