/* * 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.identitymanagement.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 CreateSAMLProviderRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication response * (assertions) that are received from the IdP. You must generate the metadata document using the identity * management software that is used as your organization's IdP. *
** For more information, see About SAML 2.0-based * federation in the IAM User Guide *
*/ private String sAMLMetadataDocument; /** ** The name of the provider to create. *
** This parameter allows (through its regex pattern) a string of * characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of * the following characters: _+=,.@- *
*/ private String name; /** ** A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an * associated value. For more information about tagging, see Tagging IAM resources in the IAM User * Guide. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request * fails and the resource is not created. *
** An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication response * (assertions) that are received from the IdP. You must generate the metadata document using the identity * management software that is used as your organization's IdP. *
** For more information, see About SAML 2.0-based * federation in the IAM User Guide *
* * @param sAMLMetadataDocument * An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication * response (assertions) that are received from the IdP. You must generate the metadata document using the * identity management software that is used as your organization's IdP. ** For more information, see About SAML 2.0-based * federation in the IAM User Guide */ public void setSAMLMetadataDocument(String sAMLMetadataDocument) { this.sAMLMetadataDocument = sAMLMetadataDocument; } /** *
* An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication response * (assertions) that are received from the IdP. You must generate the metadata document using the identity * management software that is used as your organization's IdP. *
** For more information, see About SAML 2.0-based * federation in the IAM User Guide *
* * @return An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication * response (assertions) that are received from the IdP. You must generate the metadata document using the * identity management software that is used as your organization's IdP. ** For more information, see About SAML 2.0-based * federation in the IAM User Guide */ public String getSAMLMetadataDocument() { return this.sAMLMetadataDocument; } /** *
* An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication response * (assertions) that are received from the IdP. You must generate the metadata document using the identity * management software that is used as your organization's IdP. *
** For more information, see About SAML 2.0-based * federation in the IAM User Guide *
* * @param sAMLMetadataDocument * An XML document generated by an identity provider (IdP) that supports SAML 2.0. The document includes the * issuer's name, expiration information, and keys that can be used to validate the SAML authentication * response (assertions) that are received from the IdP. You must generate the metadata document using the * identity management software that is used as your organization's IdP. ** For more information, see About SAML 2.0-based * federation in the IAM User Guide * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSAMLProviderRequest withSAMLMetadataDocument(String sAMLMetadataDocument) { setSAMLMetadataDocument(sAMLMetadataDocument); return this; } /** *
* The name of the provider to create. *
** This parameter allows (through its regex pattern) a string of * characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of * the following characters: _+=,.@- *
* * @param name * The name of the provider to create. ** This parameter allows (through its regex pattern) a string * of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also * include any of the following characters: _+=,.@- */ public void setName(String name) { this.name = name; } /** *
* The name of the provider to create. *
** This parameter allows (through its regex pattern) a string of * characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of * the following characters: _+=,.@- *
* * @return The name of the provider to create. ** This parameter allows (through its regex pattern) a string * of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also * include any of the following characters: _+=,.@- */ public String getName() { return this.name; } /** *
* The name of the provider to create. *
** This parameter allows (through its regex pattern) a string of * characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of * the following characters: _+=,.@- *
* * @param name * The name of the provider to create. ** This parameter allows (through its regex pattern) a string * of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also * include any of the following characters: _+=,.@- * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSAMLProviderRequest withName(String name) { setName(name); return this; } /** *
* A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an * associated value. For more information about tagging, see Tagging IAM resources in the IAM User * Guide. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request * fails and the resource is not created. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire * request fails and the resource is not created. *
*/ public java.util.List* A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an * associated value. For more information about tagging, see Tagging IAM resources in the IAM User * Guide. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request * fails and the resource is not created. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire * request fails and the resource is not created. *
*/ public void setTags(java.util.Collection* A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an * associated value. For more information about tagging, see Tagging IAM resources in the IAM User * Guide. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request * fails and the resource is not created. *
** 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 that you want to attach to the new IAM SAML provider. Each tag consists of a key name and * an associated value. For more information about tagging, see Tagging IAM resources in the * IAM User Guide.* If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire * request fails and the resource is not created. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateSAMLProviderRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* A list of tags that you want to attach to the new IAM SAML provider. Each tag consists of a key name and an * associated value. For more information about tagging, see Tagging IAM resources in the IAM User * Guide. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request * fails and the resource is not created. *
** If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire * request fails and the resource is not created. *
* @return Returns a reference to this object so that method calls can be chained together. */ public CreateSAMLProviderRequest withTags(java.util.Collection