/* * 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.dataexchange.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 CreateDataSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The type of asset that is added to a data set. *
*/ private String assetType; /** ** A description for the data set. This value can be up to 16,348 characters long. *
*/ private String description; /** ** The name of the data set. *
*/ private String name; /** ** A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a * key and an optional value, both of which you define. When you use tagging, you can also use tag-based access * control in IAM policies to control access to these data sets and revisions. *
*/ private java.util.Map* The type of asset that is added to a data set. *
* * @param assetType * The type of asset that is added to a data set. * @see AssetType */ public void setAssetType(String assetType) { this.assetType = assetType; } /** ** The type of asset that is added to a data set. *
* * @return The type of asset that is added to a data set. * @see AssetType */ public String getAssetType() { return this.assetType; } /** ** The type of asset that is added to a data set. *
* * @param assetType * The type of asset that is added to a data set. * @return Returns a reference to this object so that method calls can be chained together. * @see AssetType */ public CreateDataSetRequest withAssetType(String assetType) { setAssetType(assetType); return this; } /** ** The type of asset that is added to a data set. *
* * @param assetType * The type of asset that is added to a data set. * @return Returns a reference to this object so that method calls can be chained together. * @see AssetType */ public CreateDataSetRequest withAssetType(AssetType assetType) { this.assetType = assetType.toString(); return this; } /** ** A description for the data set. This value can be up to 16,348 characters long. *
* * @param description * A description for the data set. This value can be up to 16,348 characters long. */ public void setDescription(String description) { this.description = description; } /** ** A description for the data set. This value can be up to 16,348 characters long. *
* * @return A description for the data set. This value can be up to 16,348 characters long. */ public String getDescription() { return this.description; } /** ** A description for the data set. This value can be up to 16,348 characters long. *
* * @param description * A description for the data set. This value can be up to 16,348 characters long. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withDescription(String description) { setDescription(description); return this; } /** ** The name of the data set. *
* * @param name * The name of the data set. */ public void setName(String name) { this.name = name; } /** ** The name of the data set. *
* * @return The name of the data set. */ public String getName() { return this.name; } /** ** The name of the data set. *
* * @param name * The name of the data set. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withName(String name) { setName(name); return this; } /** ** A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a * key and an optional value, both of which you define. When you use tagging, you can also use tag-based access * control in IAM policies to control access to these data sets and revisions. *
* * @return A data set tag is an optional label that you can assign to a data set when you create it. Each tag * consists of a key and an optional value, both of which you define. When you use tagging, you can also use * tag-based access control in IAM policies to control access to these data sets and revisions. */ public java.util.Map* A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a * key and an optional value, both of which you define. When you use tagging, you can also use tag-based access * control in IAM policies to control access to these data sets and revisions. *
* * @param tags * A data set tag is an optional label that you can assign to a data set when you create it. Each tag * consists of a key and an optional value, both of which you define. When you use tagging, you can also use * tag-based access control in IAM policies to control access to these data sets and revisions. */ public void setTags(java.util.Map* A data set tag is an optional label that you can assign to a data set when you create it. Each tag consists of a * key and an optional value, both of which you define. When you use tagging, you can also use tag-based access * control in IAM policies to control access to these data sets and revisions. *
* * @param tags * A data set tag is an optional label that you can assign to a data set when you create it. Each tag * consists of a key and an optional value, both of which you define. When you use tagging, you can also use * tag-based access control in IAM policies to control access to these data sets and revisions. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDataSetRequest withTags(java.util.Map