/* * 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.sagemaker.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 CreateArtifactRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the artifact. Must be unique to your account in an Amazon Web Services Region. *
*/ private String artifactName; /** ** The ID, ID type, and URI of the source. *
*/ private ArtifactSource source; /** ** The artifact type. *
*/ private String artifactType; /** ** A list of properties to add to the artifact. *
*/ private java.util.Map* A list of tags to apply to the artifact. *
*/ private java.util.List* The name of the artifact. Must be unique to your account in an Amazon Web Services Region. *
* * @param artifactName * The name of the artifact. Must be unique to your account in an Amazon Web Services Region. */ public void setArtifactName(String artifactName) { this.artifactName = artifactName; } /** ** The name of the artifact. Must be unique to your account in an Amazon Web Services Region. *
* * @return The name of the artifact. Must be unique to your account in an Amazon Web Services Region. */ public String getArtifactName() { return this.artifactName; } /** ** The name of the artifact. Must be unique to your account in an Amazon Web Services Region. *
* * @param artifactName * The name of the artifact. Must be unique to your account in an Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateArtifactRequest withArtifactName(String artifactName) { setArtifactName(artifactName); return this; } /** ** The ID, ID type, and URI of the source. *
* * @param source * The ID, ID type, and URI of the source. */ public void setSource(ArtifactSource source) { this.source = source; } /** ** The ID, ID type, and URI of the source. *
* * @return The ID, ID type, and URI of the source. */ public ArtifactSource getSource() { return this.source; } /** ** The ID, ID type, and URI of the source. *
* * @param source * The ID, ID type, and URI of the source. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateArtifactRequest withSource(ArtifactSource source) { setSource(source); return this; } /** ** The artifact type. *
* * @param artifactType * The artifact type. */ public void setArtifactType(String artifactType) { this.artifactType = artifactType; } /** ** The artifact type. *
* * @return The artifact type. */ public String getArtifactType() { return this.artifactType; } /** ** The artifact type. *
* * @param artifactType * The artifact type. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateArtifactRequest withArtifactType(String artifactType) { setArtifactType(artifactType); return this; } /** ** A list of properties to add to the artifact. *
* * @return A list of properties to add to the artifact. */ public java.util.Map* A list of properties to add to the artifact. *
* * @param properties * A list of properties to add to the artifact. */ public void setProperties(java.util.Map* A list of properties to add to the artifact. *
* * @param properties * A list of properties to add to the artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateArtifactRequest withProperties(java.util.Map* A list of tags to apply to the artifact. *
* * @return A list of tags to apply to the artifact. */ public java.util.List* A list of tags to apply to the artifact. *
* * @param tags * A list of tags to apply to the artifact. */ public void setTags(java.util.Collection* A list of tags to apply to the artifact. *
** 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 artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateArtifactRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags to apply to the artifact. *
* * @param tags * A list of tags to apply to the artifact. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateArtifactRequest withTags(java.util.Collection