/* * 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.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about the test set that is imported. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TestSetImportResourceSpecification implements Serializable, Cloneable, StructuredPojo { /** ** The name of the test set. *
*/ private String testSetName; /** ** The description of the test set. *
*/ private String description; /** ** The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. *
*/ private String roleArn; /** ** Contains information about the location that Amazon Lex uses to store the test-set. *
*/ private TestSetStorageLocation storageLocation; /** ** Contains information about the input location from where test-set should be imported. *
*/ private TestSetImportInputLocation importInputLocation; /** ** Specifies whether the test-set being imported contains written or spoken data. *
*/ private String modality; /** *
* A list of tags to add to the test set. You can only add tags when you import/generate a new test set. You can't
* use the UpdateTestSet
operation to update tags. To update tags, use the TagResource
* operation.
*
* The name of the test set. *
* * @param testSetName * The name of the test set. */ public void setTestSetName(String testSetName) { this.testSetName = testSetName; } /** ** The name of the test set. *
* * @return The name of the test set. */ public String getTestSetName() { return this.testSetName; } /** ** The name of the test set. *
* * @param testSetName * The name of the test set. * @return Returns a reference to this object so that method calls can be chained together. */ public TestSetImportResourceSpecification withTestSetName(String testSetName) { setTestSetName(testSetName); return this; } /** ** The description of the test set. *
* * @param description * The description of the test set. */ public void setDescription(String description) { this.description = description; } /** ** The description of the test set. *
* * @return The description of the test set. */ public String getDescription() { return this.description; } /** ** The description of the test set. *
* * @param description * The description of the test set. * @return Returns a reference to this object so that method calls can be chained together. */ public TestSetImportResourceSpecification withDescription(String description) { setDescription(description); return this; } /** ** The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. *
* * @return The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. */ public String getRoleArn() { return this.roleArn; } /** ** The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. *
* * @param roleArn * The Amazon Resource Name (ARN) of an IAM role that has permission to access the test set. * @return Returns a reference to this object so that method calls can be chained together. */ public TestSetImportResourceSpecification withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** ** Contains information about the location that Amazon Lex uses to store the test-set. *
* * @param storageLocation * Contains information about the location that Amazon Lex uses to store the test-set. */ public void setStorageLocation(TestSetStorageLocation storageLocation) { this.storageLocation = storageLocation; } /** ** Contains information about the location that Amazon Lex uses to store the test-set. *
* * @return Contains information about the location that Amazon Lex uses to store the test-set. */ public TestSetStorageLocation getStorageLocation() { return this.storageLocation; } /** ** Contains information about the location that Amazon Lex uses to store the test-set. *
* * @param storageLocation * Contains information about the location that Amazon Lex uses to store the test-set. * @return Returns a reference to this object so that method calls can be chained together. */ public TestSetImportResourceSpecification withStorageLocation(TestSetStorageLocation storageLocation) { setStorageLocation(storageLocation); return this; } /** ** Contains information about the input location from where test-set should be imported. *
* * @param importInputLocation * Contains information about the input location from where test-set should be imported. */ public void setImportInputLocation(TestSetImportInputLocation importInputLocation) { this.importInputLocation = importInputLocation; } /** ** Contains information about the input location from where test-set should be imported. *
* * @return Contains information about the input location from where test-set should be imported. */ public TestSetImportInputLocation getImportInputLocation() { return this.importInputLocation; } /** ** Contains information about the input location from where test-set should be imported. *
* * @param importInputLocation * Contains information about the input location from where test-set should be imported. * @return Returns a reference to this object so that method calls can be chained together. */ public TestSetImportResourceSpecification withImportInputLocation(TestSetImportInputLocation importInputLocation) { setImportInputLocation(importInputLocation); return this; } /** ** Specifies whether the test-set being imported contains written or spoken data. *
* * @param modality * Specifies whether the test-set being imported contains written or spoken data. * @see TestSetModality */ public void setModality(String modality) { this.modality = modality; } /** ** Specifies whether the test-set being imported contains written or spoken data. *
* * @return Specifies whether the test-set being imported contains written or spoken data. * @see TestSetModality */ public String getModality() { return this.modality; } /** ** Specifies whether the test-set being imported contains written or spoken data. *
* * @param modality * Specifies whether the test-set being imported contains written or spoken data. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetModality */ public TestSetImportResourceSpecification withModality(String modality) { setModality(modality); return this; } /** ** Specifies whether the test-set being imported contains written or spoken data. *
* * @param modality * Specifies whether the test-set being imported contains written or spoken data. * @return Returns a reference to this object so that method calls can be chained together. * @see TestSetModality */ public TestSetImportResourceSpecification withModality(TestSetModality modality) { this.modality = modality.toString(); return this; } /** *
* A list of tags to add to the test set. You can only add tags when you import/generate a new test set. You can't
* use the UpdateTestSet
operation to update tags. To update tags, use the TagResource
* operation.
*
UpdateTestSet
operation to update tags. To update tags, use the
* TagResource
operation.
*/
public java.util.Map
* A list of tags to add to the test set. You can only add tags when you import/generate a new test set. You can't
* use the UpdateTestSet
operation to update tags. To update tags, use the TagResource
* operation.
*
UpdateTestSet
operation to update tags. To update tags, use the
* TagResource
operation.
*/
public void setTestSetTags(java.util.Map
* A list of tags to add to the test set. You can only add tags when you import/generate a new test set. You can't
* use the UpdateTestSet
operation to update tags. To update tags, use the TagResource
* operation.
*
UpdateTestSet
operation to update tags. To update tags, use the
* TagResource
operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public TestSetImportResourceSpecification withTestSetTags(java.util.Map