/* * 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.personalize.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 CreateDatasetGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name for the new dataset group. *
*/ private String name; /** ** The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management * Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. *
*/ private String roleArn; /** ** The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. *
*/ private String kmsKeyArn; /** ** The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't specify a * domain, you create a Custom dataset group with solution versions that you deploy with a campaign. *
*/ private String domain; /** ** A list of tags to apply to * the dataset group. *
*/ private java.util.List* The name for the new dataset group. *
* * @param name * The name for the new dataset group. */ public void setName(String name) { this.name = name; } /** ** The name for the new dataset group. *
* * @return The name for the new dataset group. */ public String getName() { return this.name; } /** ** The name for the new dataset group. *
* * @param name * The name for the new dataset group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetGroupRequest withName(String name) { setName(name); return this; } /** ** The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management * Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. *
* * @param roleArn * The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management * Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management * Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. *
* * @return The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key * Management Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. */ public String getRoleArn() { return this.roleArn; } /** ** The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management * Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. *
* * @param roleArn * The ARN of the Identity and Access Management (IAM) role that has permissions to access the Key Management * Service (KMS) key. Supplying an IAM role is only valid when also specifying a KMS key. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetGroupRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. *
* * @param kmsKeyArn * The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** ** The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. *
* * @return The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** ** The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. *
* * @param kmsKeyArn * The Amazon Resource Name (ARN) of a Key Management Service (KMS) key used to encrypt the datasets. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetGroupRequest withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** ** The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't specify a * domain, you create a Custom dataset group with solution versions that you deploy with a campaign. *
* * @param domain * The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't * specify a domain, you create a Custom dataset group with solution versions that you deploy with a * campaign. * @see Domain */ public void setDomain(String domain) { this.domain = domain; } /** ** The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't specify a * domain, you create a Custom dataset group with solution versions that you deploy with a campaign. *
* * @return The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you * specify determines the default schemas for datasets and the use cases available for recommenders. If you * don't specify a domain, you create a Custom dataset group with solution versions that you deploy with a * campaign. * @see Domain */ public String getDomain() { return this.domain; } /** ** The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't specify a * domain, you create a Custom dataset group with solution versions that you deploy with a campaign. *
* * @param domain * The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't * specify a domain, you create a Custom dataset group with solution versions that you deploy with a * campaign. * @return Returns a reference to this object so that method calls can be chained together. * @see Domain */ public CreateDatasetGroupRequest withDomain(String domain) { setDomain(domain); return this; } /** ** The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't specify a * domain, you create a Custom dataset group with solution versions that you deploy with a campaign. *
* * @param domain * The domain of the dataset group. Specify a domain to create a Domain dataset group. The domain you specify * determines the default schemas for datasets and the use cases available for recommenders. If you don't * specify a domain, you create a Custom dataset group with solution versions that you deploy with a * campaign. * @return Returns a reference to this object so that method calls can be chained together. * @see Domain */ public CreateDatasetGroupRequest withDomain(Domain domain) { this.domain = domain.toString(); return this; } /** ** A list of tags to apply to * the dataset group. *
* * @return A list of tags to * apply to the dataset group. */ public java.util.List* A list of tags to apply to * the dataset group. *
* * @param tags * A list of tags to * apply to the dataset group. */ public void setTags(java.util.Collection* A list of tags to apply to * the dataset group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of tags to * apply to the dataset group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags to apply to * the dataset group. *
* * @param tags * A list of tags to * apply to the dataset group. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateDatasetGroupRequest withTags(java.util.Collection