/* * 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 CreateUserProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the associated Domain. *
*/ private String domainId; /** ** A name for the UserProfile. This value is not case sensitive. *
*/ private String userProfileName; /** ** A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is * "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's AuthMode is * not IAM Identity Center, this field cannot be specified. *
*/ private String singleSignOnUserIdentifier; /** ** The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's * AuthMode is IAM Identity Center, this field is required, and must match a valid username of a user in your * directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be specified. *
*/ private String singleSignOnUserValue; /** ** Each tag consists of a key and an optional value. Tag keys must be unique per resource. *
** Tags that you specify for the User Profile are also added to all Apps that the User Profile launches. *
*/ private java.util.List* A collection of settings. *
*/ private UserSettings userSettings; /** ** The ID of the associated Domain. *
* * @param domainId * The ID of the associated Domain. */ public void setDomainId(String domainId) { this.domainId = domainId; } /** ** The ID of the associated Domain. *
* * @return The ID of the associated Domain. */ public String getDomainId() { return this.domainId; } /** ** The ID of the associated Domain. *
* * @param domainId * The ID of the associated Domain. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserProfileRequest withDomainId(String domainId) { setDomainId(domainId); return this; } /** ** A name for the UserProfile. This value is not case sensitive. *
* * @param userProfileName * A name for the UserProfile. This value is not case sensitive. */ public void setUserProfileName(String userProfileName) { this.userProfileName = userProfileName; } /** ** A name for the UserProfile. This value is not case sensitive. *
* * @return A name for the UserProfile. This value is not case sensitive. */ public String getUserProfileName() { return this.userProfileName; } /** ** A name for the UserProfile. This value is not case sensitive. *
* * @param userProfileName * A name for the UserProfile. This value is not case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserProfileRequest withUserProfileName(String userProfileName) { setUserProfileName(userProfileName); return this; } /** ** A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is * "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's AuthMode is * not IAM Identity Center, this field cannot be specified. *
* * @param singleSignOnUserIdentifier * A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value * is "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's * AuthMode is not IAM Identity Center, this field cannot be specified. */ public void setSingleSignOnUserIdentifier(String singleSignOnUserIdentifier) { this.singleSignOnUserIdentifier = singleSignOnUserIdentifier; } /** ** A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is * "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's AuthMode is * not IAM Identity Center, this field cannot be specified. *
* * @return A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value * is "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's * AuthMode is not IAM Identity Center, this field cannot be specified. */ public String getSingleSignOnUserIdentifier() { return this.singleSignOnUserIdentifier; } /** ** A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value is * "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's AuthMode is * not IAM Identity Center, this field cannot be specified. *
* * @param singleSignOnUserIdentifier * A specifier for the type of value specified in SingleSignOnUserValue. Currently, the only supported value * is "UserName". If the Domain's AuthMode is IAM Identity Center, this field is required. If the Domain's * AuthMode is not IAM Identity Center, this field cannot be specified. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserProfileRequest withSingleSignOnUserIdentifier(String singleSignOnUserIdentifier) { setSingleSignOnUserIdentifier(singleSignOnUserIdentifier); return this; } /** ** The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's * AuthMode is IAM Identity Center, this field is required, and must match a valid username of a user in your * directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be specified. *
* * @param singleSignOnUserValue * The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the * Domain's AuthMode is IAM Identity Center, this field is required, and must match a valid username of a * user in your directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be * specified. */ public void setSingleSignOnUserValue(String singleSignOnUserValue) { this.singleSignOnUserValue = singleSignOnUserValue; } /** ** The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's * AuthMode is IAM Identity Center, this field is required, and must match a valid username of a user in your * directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be specified. *
* * @return The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the * Domain's AuthMode is IAM Identity Center, this field is required, and must match a valid username of a * user in your directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be * specified. */ public String getSingleSignOnUserValue() { return this.singleSignOnUserValue; } /** ** The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the Domain's * AuthMode is IAM Identity Center, this field is required, and must match a valid username of a user in your * directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be specified. *
* * @param singleSignOnUserValue * The username of the associated Amazon Web Services Single Sign-On User for this UserProfile. If the * Domain's AuthMode is IAM Identity Center, this field is required, and must match a valid username of a * user in your directory. If the Domain's AuthMode is not IAM Identity Center, this field cannot be * specified. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateUserProfileRequest withSingleSignOnUserValue(String singleSignOnUserValue) { setSingleSignOnUserValue(singleSignOnUserValue); return this; } /** ** Each tag consists of a key and an optional value. Tag keys must be unique per resource. *
** Tags that you specify for the User Profile are also added to all Apps that the User Profile launches. *
* * @return Each tag consists of a key and an optional value. Tag keys must be unique per resource. *
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
*/
public java.util.List
* Each tag consists of a key and an optional value. Tag keys must be unique per resource.
*
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
*
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
*/
public void setTags(java.util.Collection
* Each tag consists of a key and an optional value. Tag keys must be unique per resource.
*
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
*
* 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.
*
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateUserProfileRequest withTags(Tag... tags) {
if (this.tags == null) {
setTags(new java.util.ArrayList
* Each tag consists of a key and an optional value. Tag keys must be unique per resource.
*
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
*
* Tags that you specify for the User Profile are also added to all Apps that the User Profile launches.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateUserProfileRequest withTags(java.util.Collection
* A collection of settings.
*
* A collection of settings.
*
* A collection of settings.
*