/* * 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 a component that is a candidate to deploy to a Greengrass core device. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ComponentCandidate implements Serializable, Cloneable, StructuredPojo { /** ** The name of the component. *
*/ private String componentName; /** ** The version of the component. *
*/ private String componentVersion; /** ** The version requirements for the component's dependencies. Greengrass core devices get the version requirements * from component recipes. *
** IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning. *
*/ private java.util.Map* The name of the component. *
* * @param componentName * The name of the component. */ public void setComponentName(String componentName) { this.componentName = componentName; } /** ** The name of the component. *
* * @return The name of the component. */ public String getComponentName() { return this.componentName; } /** ** The name of the component. *
* * @param componentName * The name of the component. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentCandidate withComponentName(String componentName) { setComponentName(componentName); 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 ComponentCandidate withComponentVersion(String componentVersion) { setComponentVersion(componentVersion); return this; } /** ** The version requirements for the component's dependencies. Greengrass core devices get the version requirements * from component recipes. *
** IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning. *
* * @return The version requirements for the component's dependencies. Greengrass core devices get the version * requirements from component recipes. *
* IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
*/
public java.util.Map
* The version requirements for the component's dependencies. Greengrass core devices get the version requirements
* from component recipes.
*
* IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
*
* IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
*/
public void setVersionRequirements(java.util.Map
* The version requirements for the component's dependencies. Greengrass core devices get the version requirements
* from component recipes.
*
* IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
*
* IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComponentCandidate withVersionRequirements(java.util.Map