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

com.amazonaws.services.serverlessapplicationrepository.model.CreateCloudFormationChangeSetResult Maven / Gradle / Ivy

Go to download

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

The 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.serverlessapplicationrepository.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The application Amazon Resource Name (ARN). *

*/ private String applicationId; /** *

* The Amazon Resource Name (ARN) of the change set. *

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/]* *

*/ private String changeSetId; /** *

* The semantic version of the application: *

*

* https://semver.org/ *

*/ private String semanticVersion; /** *

* The unique ID of the stack. *

*/ private String stackId; /** *

* The application Amazon Resource Name (ARN). *

* * @param applicationId * The application Amazon Resource Name (ARN). */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The application Amazon Resource Name (ARN). *

* * @return The application Amazon Resource Name (ARN). */ public String getApplicationId() { return this.applicationId; } /** *

* The application Amazon Resource Name (ARN). *

* * @param applicationId * The application Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetResult withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The Amazon Resource Name (ARN) of the change set. *

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/]* *

* * @param changeSetId * The Amazon Resource Name (ARN) of the change set.

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/] **/ public void setChangeSetId(String changeSetId) { this.changeSetId = changeSetId; } /** *

* The Amazon Resource Name (ARN) of the change set. *

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/]* *

* * @return The Amazon Resource Name (ARN) of the change set.

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/] **/ public String getChangeSetId() { return this.changeSetId; } /** *

* The Amazon Resource Name (ARN) of the change set. *

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/]* *

* * @param changeSetId * The Amazon Resource Name (ARN) of the change set.

*

* Length constraints: Minimum length of 1. *

*

* Pattern: ARN:[-a-zA-Z0-9:/]* * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetResult withChangeSetId(String changeSetId) { setChangeSetId(changeSetId); return this; } /** *

* The semantic version of the application: *

*

* https://semver.org/ *

* * @param semanticVersion * The semantic version of the application:

*

* https://semver.org/ */ public void setSemanticVersion(String semanticVersion) { this.semanticVersion = semanticVersion; } /** *

* The semantic version of the application: *

*

* https://semver.org/ *

* * @return The semantic version of the application:

*

* https://semver.org/ */ public String getSemanticVersion() { return this.semanticVersion; } /** *

* The semantic version of the application: *

*

* https://semver.org/ *

* * @param semanticVersion * The semantic version of the application:

*

* https://semver.org/ * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetResult withSemanticVersion(String semanticVersion) { setSemanticVersion(semanticVersion); return this; } /** *

* The unique ID of the stack. *

* * @param stackId * The unique ID of the stack. */ public void setStackId(String stackId) { this.stackId = stackId; } /** *

* The unique ID of the stack. *

* * @return The unique ID of the stack. */ public String getStackId() { return this.stackId; } /** *

* The unique ID of the stack. *

* * @param stackId * The unique ID of the stack. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCloudFormationChangeSetResult withStackId(String stackId) { setStackId(stackId); 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 (getChangeSetId() != null) sb.append("ChangeSetId: ").append(getChangeSetId()).append(","); if (getSemanticVersion() != null) sb.append("SemanticVersion: ").append(getSemanticVersion()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCloudFormationChangeSetResult == false) return false; CreateCloudFormationChangeSetResult other = (CreateCloudFormationChangeSetResult) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getChangeSetId() == null ^ this.getChangeSetId() == null) return false; if (other.getChangeSetId() != null && other.getChangeSetId().equals(this.getChangeSetId()) == false) return false; if (other.getSemanticVersion() == null ^ this.getSemanticVersion() == null) return false; if (other.getSemanticVersion() != null && other.getSemanticVersion().equals(this.getSemanticVersion()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == 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 + ((getChangeSetId() == null) ? 0 : getChangeSetId().hashCode()); hashCode = prime * hashCode + ((getSemanticVersion() == null) ? 0 : getSemanticVersion().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); return hashCode; } @Override public CreateCloudFormationChangeSetResult clone() { try { return (CreateCloudFormationChangeSetResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy