/* * 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 CreateRevisionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* An optional comment about the revision. *
*/ private String comment; /** ** The unique identifier for a data set. *
*/ private String dataSetId; /** ** A revision tag is an optional label that you can assign to a revision 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* An optional comment about the revision. *
* * @param comment * An optional comment about the revision. */ public void setComment(String comment) { this.comment = comment; } /** ** An optional comment about the revision. *
* * @return An optional comment about the revision. */ public String getComment() { return this.comment; } /** ** An optional comment about the revision. *
* * @param comment * An optional comment about the revision. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRevisionRequest withComment(String comment) { setComment(comment); return this; } /** ** The unique identifier for a data set. *
* * @param dataSetId * The unique identifier for a data set. */ public void setDataSetId(String dataSetId) { this.dataSetId = dataSetId; } /** ** The unique identifier for a data set. *
* * @return The unique identifier for a data set. */ public String getDataSetId() { return this.dataSetId; } /** ** The unique identifier for a data set. *
* * @param dataSetId * The unique identifier for a data set. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateRevisionRequest withDataSetId(String dataSetId) { setDataSetId(dataSetId); return this; } /** ** A revision tag is an optional label that you can assign to a revision 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 revision tag is an optional label that you can assign to a revision 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 revision tag is an optional label that you can assign to a revision 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 revision tag is an optional label that you can assign to a revision 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 revision tag is an optional label that you can assign to a revision 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 revision tag is an optional label that you can assign to a revision 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 CreateRevisionRequest withTags(java.util.Map