/* * 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 CreateContextRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the context. Must be unique to your account in an Amazon Web Services Region. *
*/ private String contextName; /** ** The source type, ID, and URI. *
*/ private ContextSource source; /** ** The context type. *
*/ private String contextType; /** ** The description of the context. *
*/ private String description; /** ** A list of properties to add to the context. *
*/ private java.util.Map* A list of tags to apply to the context. *
*/ private java.util.List* The name of the context. Must be unique to your account in an Amazon Web Services Region. *
* * @param contextName * The name of the context. Must be unique to your account in an Amazon Web Services Region. */ public void setContextName(String contextName) { this.contextName = contextName; } /** ** The name of the context. Must be unique to your account in an Amazon Web Services Region. *
* * @return The name of the context. Must be unique to your account in an Amazon Web Services Region. */ public String getContextName() { return this.contextName; } /** ** The name of the context. Must be unique to your account in an Amazon Web Services Region. *
* * @param contextName * The name of the context. 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 CreateContextRequest withContextName(String contextName) { setContextName(contextName); return this; } /** ** The source type, ID, and URI. *
* * @param source * The source type, ID, and URI. */ public void setSource(ContextSource source) { this.source = source; } /** ** The source type, ID, and URI. *
* * @return The source type, ID, and URI. */ public ContextSource getSource() { return this.source; } /** ** The source type, ID, and URI. *
* * @param source * The source type, ID, and URI. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContextRequest withSource(ContextSource source) { setSource(source); return this; } /** ** The context type. *
* * @param contextType * The context type. */ public void setContextType(String contextType) { this.contextType = contextType; } /** ** The context type. *
* * @return The context type. */ public String getContextType() { return this.contextType; } /** ** The context type. *
* * @param contextType * The context type. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContextRequest withContextType(String contextType) { setContextType(contextType); return this; } /** ** The description of the context. *
* * @param description * The description of the context. */ public void setDescription(String description) { this.description = description; } /** ** The description of the context. *
* * @return The description of the context. */ public String getDescription() { return this.description; } /** ** The description of the context. *
* * @param description * The description of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContextRequest withDescription(String description) { setDescription(description); return this; } /** ** A list of properties to add to the context. *
* * @return A list of properties to add to the context. */ public java.util.Map* A list of properties to add to the context. *
* * @param properties * A list of properties to add to the context. */ public void setProperties(java.util.Map* A list of properties to add to the context. *
* * @param properties * A list of properties to add to the context. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContextRequest withProperties(java.util.Map* A list of tags to apply to the context. *
* * @return A list of tags to apply to the context. */ public java.util.List* A list of tags to apply to the context. *
* * @param tags * A list of tags to apply to the context. */ public void setTags(java.util.Collection* A list of tags to apply to the context. *
** 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 context. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContextRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of tags to apply to the context. *
* * @param tags * A list of tags to apply to the context. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateContextRequest withTags(java.util.Collection