/* * 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 CreateStudioLifecycleConfigRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the Studio Lifecycle Configuration to create. *
*/ private String studioLifecycleConfigName; /** ** The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. *
*/ private String studioLifecycleConfigContent; /** ** The App type that the Lifecycle Configuration is attached to. *
*/ private String studioLifecycleConfigAppType; /** ** Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. Tag * keys must be unique per resource. Tags are searchable using the Search API. *
*/ private java.util.List* The name of the Studio Lifecycle Configuration to create. *
* * @param studioLifecycleConfigName * The name of the Studio Lifecycle Configuration to create. */ public void setStudioLifecycleConfigName(String studioLifecycleConfigName) { this.studioLifecycleConfigName = studioLifecycleConfigName; } /** ** The name of the Studio Lifecycle Configuration to create. *
* * @return The name of the Studio Lifecycle Configuration to create. */ public String getStudioLifecycleConfigName() { return this.studioLifecycleConfigName; } /** ** The name of the Studio Lifecycle Configuration to create. *
* * @param studioLifecycleConfigName * The name of the Studio Lifecycle Configuration to create. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStudioLifecycleConfigRequest withStudioLifecycleConfigName(String studioLifecycleConfigName) { setStudioLifecycleConfigName(studioLifecycleConfigName); return this; } /** ** The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. *
* * @param studioLifecycleConfigContent * The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. */ public void setStudioLifecycleConfigContent(String studioLifecycleConfigContent) { this.studioLifecycleConfigContent = studioLifecycleConfigContent; } /** ** The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. *
* * @return The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. */ public String getStudioLifecycleConfigContent() { return this.studioLifecycleConfigContent; } /** ** The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. *
* * @param studioLifecycleConfigContent * The content of your Studio Lifecycle Configuration script. This content must be base64 encoded. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStudioLifecycleConfigRequest withStudioLifecycleConfigContent(String studioLifecycleConfigContent) { setStudioLifecycleConfigContent(studioLifecycleConfigContent); return this; } /** ** The App type that the Lifecycle Configuration is attached to. *
* * @param studioLifecycleConfigAppType * The App type that the Lifecycle Configuration is attached to. * @see StudioLifecycleConfigAppType */ public void setStudioLifecycleConfigAppType(String studioLifecycleConfigAppType) { this.studioLifecycleConfigAppType = studioLifecycleConfigAppType; } /** ** The App type that the Lifecycle Configuration is attached to. *
* * @return The App type that the Lifecycle Configuration is attached to. * @see StudioLifecycleConfigAppType */ public String getStudioLifecycleConfigAppType() { return this.studioLifecycleConfigAppType; } /** ** The App type that the Lifecycle Configuration is attached to. *
* * @param studioLifecycleConfigAppType * The App type that the Lifecycle Configuration is attached to. * @return Returns a reference to this object so that method calls can be chained together. * @see StudioLifecycleConfigAppType */ public CreateStudioLifecycleConfigRequest withStudioLifecycleConfigAppType(String studioLifecycleConfigAppType) { setStudioLifecycleConfigAppType(studioLifecycleConfigAppType); return this; } /** ** The App type that the Lifecycle Configuration is attached to. *
* * @param studioLifecycleConfigAppType * The App type that the Lifecycle Configuration is attached to. * @return Returns a reference to this object so that method calls can be chained together. * @see StudioLifecycleConfigAppType */ public CreateStudioLifecycleConfigRequest withStudioLifecycleConfigAppType(StudioLifecycleConfigAppType studioLifecycleConfigAppType) { this.studioLifecycleConfigAppType = studioLifecycleConfigAppType.toString(); return this; } /** ** Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. Tag * keys must be unique per resource. Tags are searchable using the Search API. *
* * @return Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. * Tag keys must be unique per resource. Tags are searchable using the Search API. */ public java.util.List* Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. Tag * keys must be unique per resource. Tags are searchable using the Search API. *
* * @param tags * Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. * Tag keys must be unique per resource. Tags are searchable using the Search API. */ public void setTags(java.util.Collection* Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. Tag * keys must be unique per resource. Tags are searchable using the Search API. *
** 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 * Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. * Tag keys must be unique per resource. Tags are searchable using the Search API. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStudioLifecycleConfigRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. Tag * keys must be unique per resource. Tags are searchable using the Search API. *
* * @param tags * Tags to be associated with the Lifecycle Configuration. Each tag consists of a key and an optional value. * Tag keys must be unique per resource. Tags are searchable using the Search API. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStudioLifecycleConfigRequest withTags(java.util.Collection