/* * Copyright 2010-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.iot.model; import java.io.Serializable; public class CreatePackageVersionResult implements Serializable { /** *
* The Amazon Resource Name (ARN) for the package. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*/
private String packageVersionArn;
/**
*
* The name of the associated package. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9-_.]+
*/
private String packageName;
/**
*
* The name of the new package version. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9-_.]+
*/
private String versionName;
/**
*
* The package version description. *
*
* Constraints:
* Length: 0 - 1024
* Pattern: [^\p{C}]+
*/
private String description;
/**
*
* Metadata that were added to the package version that can be used to * define a package version’s configuration. *
*/ private java.util.Map* The status of the package version. For more information, see Package version lifecycle. *
*
* Constraints:
* Allowed Values: DRAFT, PUBLISHED, DEPRECATED
*/
private String status;
/**
*
* Error reason for a package version failure during creation or update. *
*/ private String errorReason; /** ** The Amazon Resource Name (ARN) for the package. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @return
* The Amazon Resource Name (ARN) for the package. *
*/ public String getPackageVersionArn() { return packageVersionArn; } /** ** The Amazon Resource Name (ARN) for the package. *
*
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @param packageVersionArn
* The Amazon Resource Name (ARN) for the package. *
*/ public void setPackageVersionArn(String packageVersionArn) { this.packageVersionArn = packageVersionArn; } /** ** The Amazon Resource Name (ARN) for the package. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 1600
* Pattern: ^arn:[!-~]+$
*
* @param packageVersionArn
* The Amazon Resource Name (ARN) for the package. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreatePackageVersionResult withPackageVersionArn(String packageVersionArn) { this.packageVersionArn = packageVersionArn; return this; } /** ** The name of the associated package. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9-_.]+
*
* @return
* The name of the associated package. *
*/ public String getPackageName() { return packageName; } /** ** The name of the associated package. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9-_.]+
*
* @param packageName
* The name of the associated package. *
*/ public void setPackageName(String packageName) { this.packageName = packageName; } /** ** The name of the associated package. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [a-zA-Z0-9-_.]+
*
* @param packageName
* The name of the associated package. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreatePackageVersionResult withPackageName(String packageName) { this.packageName = packageName; return this; } /** ** The name of the new package version. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9-_.]+
*
* @return
* The name of the new package version. *
*/ public String getVersionName() { return versionName; } /** ** The name of the new package version. *
*
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9-_.]+
*
* @param versionName
* The name of the new package version. *
*/ public void setVersionName(String versionName) { this.versionName = versionName; } /** ** The name of the new package version. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 64
* Pattern: [a-zA-Z0-9-_.]+
*
* @param versionName
* The name of the new package version. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreatePackageVersionResult withVersionName(String versionName) { this.versionName = versionName; return this; } /** ** The package version description. *
*
* Constraints:
* Length: 0 - 1024
* Pattern: [^\p{C}]+
*
* @return
* The package version description. *
*/ public String getDescription() { return description; } /** ** The package version description. *
*
* Constraints:
* Length: 0 - 1024
* Pattern: [^\p{C}]+
*
* @param description
* The package version description. *
*/ public void setDescription(String description) { this.description = description; } /** ** The package version description. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 0 - 1024
* Pattern: [^\p{C}]+
*
* @param description
* The package version description. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreatePackageVersionResult withDescription(String description) { this.description = description; return this; } /** ** Metadata that were added to the package version that can be used to * define a package version’s configuration. *
* * @return* Metadata that were added to the package version that can be used * to define a package version’s configuration. *
*/ public java.util.Map* Metadata that were added to the package version that can be used to * define a package version’s configuration. *
* * @param attributes* Metadata that were added to the package version that can be * used to define a package version’s configuration. *
*/ public void setAttributes(java.util.Map* Metadata that were added to the package version that can be used to * define a package version’s configuration. *
** Returns a reference to this object so that method calls can be chained * together. * * @param attributes
* Metadata that were added to the package version that can be * used to define a package version’s configuration. *
* @return A reference to this updated object so that method calls can be * chained together. */ public CreatePackageVersionResult withAttributes(java.util.Map* Metadata that were added to the package version that can be used to * define a package version’s configuration. *
*
* The method adds a new key-value pair into attributes parameter, and
* returns a reference to this object so that method calls can be chained
* together.
*
* @param key The key of the entry to be added into attributes.
* @param value The corresponding value of the entry to be added into
* attributes.
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreatePackageVersionResult addattributesEntry(String key, String value) {
if (null == this.attributes) {
this.attributes = new java.util.HashMap
* Returns a reference to this object so that method calls can be chained
* together.
*/
public CreatePackageVersionResult clearattributesEntries() {
this.attributes = null;
return this;
}
/**
*
* The status of the package version. For more information, see Package version lifecycle.
*
* Constraints:
* The status of the package version. For more information, see Package version lifecycle.
*
* The status of the package version. For more information, see Package version lifecycle.
*
* Constraints:
* The status of the package version. For more information, see
* Package version lifecycle.
*
* The status of the package version. For more information, see Package version lifecycle.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The status of the package version. For more information, see
* Package version lifecycle.
*
* The status of the package version. For more information, see Package version lifecycle.
*
* Constraints:
* The status of the package version. For more information, see
* Package version lifecycle.
*
* The status of the package version. For more information, see Package version lifecycle.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* Constraints:
* The status of the package version. For more information, see
* Package version lifecycle.
*
* Error reason for a package version failure during creation or update.
*
* Error reason for a package version failure during creation or
* update.
*
* Error reason for a package version failure during creation or update.
*
* Error reason for a package version failure during creation or
* update.
*
* Error reason for a package version failure during creation or update.
*
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param errorReason
* Error reason for a package version failure during creation or
* update.
*
* Allowed Values: DRAFT, PUBLISHED, DEPRECATED
*
* @return
* Allowed Values: DRAFT, PUBLISHED, DEPRECATED
*
* @param status
* Allowed Values: DRAFT, PUBLISHED, DEPRECATED
*
* @param status
* Allowed Values: DRAFT, PUBLISHED, DEPRECATED
*
* @param status
* Allowed Values: DRAFT, PUBLISHED, DEPRECATED
*
* @param status