/* * 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.rekognition.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateCollectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* ID for the collection that you are creating. *
*/ private String collectionId; /** ** A set of tags (key-value pairs) that you want to attach to the collection. *
*/ private java.util.Map* ID for the collection that you are creating. *
* * @param collectionId * ID for the collection that you are creating. */ public void setCollectionId(String collectionId) { this.collectionId = collectionId; } /** ** ID for the collection that you are creating. *
* * @return ID for the collection that you are creating. */ public String getCollectionId() { return this.collectionId; } /** ** ID for the collection that you are creating. *
* * @param collectionId * ID for the collection that you are creating. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionRequest withCollectionId(String collectionId) { setCollectionId(collectionId); return this; } /** ** A set of tags (key-value pairs) that you want to attach to the collection. *
* * @return A set of tags (key-value pairs) that you want to attach to the collection. */ public java.util.Map* A set of tags (key-value pairs) that you want to attach to the collection. *
* * @param tags * A set of tags (key-value pairs) that you want to attach to the collection. */ public void setTags(java.util.Map* A set of tags (key-value pairs) that you want to attach to the collection. *
* * @param tags * A set of tags (key-value pairs) that you want to attach to the collection. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCollectionRequest withTags(java.util.Map