/* * 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.greengrassv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the latest version of a component. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ComponentLatestVersion implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the component * version. *
*/ private String arn; /** ** The version of the component. *
*/ private String componentVersion; /** ** The time at which the component was created, expressed in ISO 8601 format. *
*/ private java.util.Date creationTimestamp; /** ** The description of the component version. *
*/ private String description; /** ** The publisher of the component version. *
*/ private String publisher; /** ** The platforms that the component version supports. *
*/ private java.util.List* The ARN of the component * version. *
* * @param arn * The ARN of the * component version. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the component * version. *
* * @return The ARN of the * component version. */ public String getArn() { return this.arn; } /** ** The ARN of the component * version. *
* * @param arn * The ARN of the * component version. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withArn(String arn) { setArn(arn); return this; } /** ** The version of the component. *
* * @param componentVersion * The version of the component. */ public void setComponentVersion(String componentVersion) { this.componentVersion = componentVersion; } /** ** The version of the component. *
* * @return The version of the component. */ public String getComponentVersion() { return this.componentVersion; } /** ** The version of the component. *
* * @param componentVersion * The version of the component. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withComponentVersion(String componentVersion) { setComponentVersion(componentVersion); return this; } /** ** The time at which the component was created, expressed in ISO 8601 format. *
* * @param creationTimestamp * The time at which the component was created, expressed in ISO 8601 format. */ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** ** The time at which the component was created, expressed in ISO 8601 format. *
* * @return The time at which the component was created, expressed in ISO 8601 format. */ public java.util.Date getCreationTimestamp() { return this.creationTimestamp; } /** ** The time at which the component was created, expressed in ISO 8601 format. *
* * @param creationTimestamp * The time at which the component was created, expressed in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withCreationTimestamp(java.util.Date creationTimestamp) { setCreationTimestamp(creationTimestamp); return this; } /** ** The description of the component version. *
* * @param description * The description of the component version. */ public void setDescription(String description) { this.description = description; } /** ** The description of the component version. *
* * @return The description of the component version. */ public String getDescription() { return this.description; } /** ** The description of the component version. *
* * @param description * The description of the component version. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withDescription(String description) { setDescription(description); return this; } /** ** The publisher of the component version. *
* * @param publisher * The publisher of the component version. */ public void setPublisher(String publisher) { this.publisher = publisher; } /** ** The publisher of the component version. *
* * @return The publisher of the component version. */ public String getPublisher() { return this.publisher; } /** ** The publisher of the component version. *
* * @param publisher * The publisher of the component version. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withPublisher(String publisher) { setPublisher(publisher); return this; } /** ** The platforms that the component version supports. *
* * @return The platforms that the component version supports. */ public java.util.List* The platforms that the component version supports. *
* * @param platforms * The platforms that the component version supports. */ public void setPlatforms(java.util.Collection* The platforms that the component version supports. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPlatforms(java.util.Collection)} or {@link #withPlatforms(java.util.Collection)} if you want to * override the existing values. *
* * @param platforms * The platforms that the component version supports. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withPlatforms(ComponentPlatform... platforms) { if (this.platforms == null) { setPlatforms(new java.util.ArrayList* The platforms that the component version supports. *
* * @param platforms * The platforms that the component version supports. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentLatestVersion withPlatforms(java.util.Collection