All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.personalize.model.CreateDatasetGroupRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Personalize module holds the client classes that are used for communicating with Amazon Personalize Service

The newest version!
/*
 * Copyright 2019-2024 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 tags; /** *

* 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 getTags() { return tags; } /** *

* 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 tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* 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(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* 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 tags) { setTags(tags); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getKmsKeyArn() != null) sb.append("KmsKeyArn: ").append(getKmsKeyArn()).append(","); if (getDomain() != null) sb.append("Domain: ").append(getDomain()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateDatasetGroupRequest == false) return false; CreateDatasetGroupRequest other = (CreateDatasetGroupRequest) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null) return false; if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false) return false; if (other.getDomain() == null ^ this.getDomain() == null) return false; if (other.getDomain() != null && other.getDomain().equals(this.getDomain()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode()); hashCode = prime * hashCode + ((getDomain() == null) ? 0 : getDomain().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateDatasetGroupRequest clone() { return (CreateDatasetGroupRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy