/* * 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.iot1clickprojects.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateProjectRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the project to create. *
*/ private String projectName; /** ** An optional description for the project. *
*/ private String description; /** *
* The schema defining the placement to be created. A placement template defines placement default attributes and
* device templates. You cannot add or remove device templates after the project has been created. However, you can
* update callbackOverrides
for the device templates using the UpdateProject
API.
*
* Optional tags (metadata key/value pairs) to be associated with the project. For example,
* { {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging Strategies.
*
* The name of the project to create. *
* * @param projectName * The name of the project to create. */ public void setProjectName(String projectName) { this.projectName = projectName; } /** ** The name of the project to create. *
* * @return The name of the project to create. */ public String getProjectName() { return this.projectName; } /** ** The name of the project to create. *
* * @param projectName * The name of the project to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProjectRequest withProjectName(String projectName) { setProjectName(projectName); return this; } /** ** An optional description for the project. *
* * @param description * An optional description for the project. */ public void setDescription(String description) { this.description = description; } /** ** An optional description for the project. *
* * @return An optional description for the project. */ public String getDescription() { return this.description; } /** ** An optional description for the project. *
* * @param description * An optional description for the project. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProjectRequest withDescription(String description) { setDescription(description); return this; } /** *
* The schema defining the placement to be created. A placement template defines placement default attributes and
* device templates. You cannot add or remove device templates after the project has been created. However, you can
* update callbackOverrides
for the device templates using the UpdateProject
API.
*
callbackOverrides
for the device templates using the
* UpdateProject
API.
*/
public void setPlacementTemplate(PlacementTemplate placementTemplate) {
this.placementTemplate = placementTemplate;
}
/**
*
* The schema defining the placement to be created. A placement template defines placement default attributes and
* device templates. You cannot add or remove device templates after the project has been created. However, you can
* update callbackOverrides
for the device templates using the UpdateProject
API.
*
callbackOverrides
for the device templates using the
* UpdateProject
API.
*/
public PlacementTemplate getPlacementTemplate() {
return this.placementTemplate;
}
/**
*
* The schema defining the placement to be created. A placement template defines placement default attributes and
* device templates. You cannot add or remove device templates after the project has been created. However, you can
* update callbackOverrides
for the device templates using the UpdateProject
API.
*
callbackOverrides
for the device templates using the
* UpdateProject
API.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProjectRequest withPlacementTemplate(PlacementTemplate placementTemplate) {
setPlacementTemplate(placementTemplate);
return this;
}
/**
*
* Optional tags (metadata key/value pairs) to be associated with the project. For example,
* { {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging Strategies.
*
{ {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging
* Strategies.
*/
public java.util.Map
* Optional tags (metadata key/value pairs) to be associated with the project. For example,
* { {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging Strategies.
*
{ {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging
* Strategies.
*/
public void setTags(java.util.Map
* Optional tags (metadata key/value pairs) to be associated with the project. For example,
* { {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging Strategies.
*
{ {"key1": "value1", "key2": "value2"} }
. For more information, see AWS Tagging
* Strategies.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateProjectRequest withTags(java.util.Map