All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.cognitoidentity.model.UpdateIdentityPoolRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Cognito Identity module holds the client classes that are used for communicating with Amazon Cognito Identity Service

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright 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 software.amazon.awssdk.services.cognitoidentity.model;

import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* An object representing an Amazon Cognito identity pool. *

*/ @Generated("software.amazon.awssdk:codegen") public final class UpdateIdentityPoolRequest extends CognitoIdentityRequest implements ToCopyableBuilder { private static final SdkField IDENTITY_POOL_ID_FIELD = SdkField. builder(MarshallingType.STRING) .getter(getter(UpdateIdentityPoolRequest::identityPoolId)).setter(setter(Builder::identityPoolId)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IdentityPoolId").build()).build(); private static final SdkField IDENTITY_POOL_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .getter(getter(UpdateIdentityPoolRequest::identityPoolName)).setter(setter(Builder::identityPoolName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IdentityPoolName").build()).build(); private static final SdkField ALLOW_UNAUTHENTICATED_IDENTITIES_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .getter(getter(UpdateIdentityPoolRequest::allowUnauthenticatedIdentities)) .setter(setter(Builder::allowUnauthenticatedIdentities)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AllowUnauthenticatedIdentities") .build()).build(); private static final SdkField ALLOW_CLASSIC_FLOW_FIELD = SdkField. builder(MarshallingType.BOOLEAN) .getter(getter(UpdateIdentityPoolRequest::allowClassicFlow)).setter(setter(Builder::allowClassicFlow)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AllowClassicFlow").build()).build(); private static final SdkField> SUPPORTED_LOGIN_PROVIDERS_FIELD = SdkField .> builder(MarshallingType.MAP) .getter(getter(UpdateIdentityPoolRequest::supportedLoginProviders)) .setter(setter(Builder::supportedLoginProviders)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SupportedLoginProviders").build(), MapTrait.builder() .keyLocationName("key") .valueLocationName("value") .valueFieldInfo( SdkField. builder(MarshallingType.STRING) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("value").build()).build()).build()).build(); private static final SdkField DEVELOPER_PROVIDER_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .getter(getter(UpdateIdentityPoolRequest::developerProviderName)).setter(setter(Builder::developerProviderName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DeveloperProviderName").build()) .build(); private static final SdkField> OPEN_ID_CONNECT_PROVIDER_AR_NS_FIELD = SdkField .> builder(MarshallingType.LIST) .getter(getter(UpdateIdentityPoolRequest::openIdConnectProviderARNs)) .setter(setter(Builder::openIdConnectProviderARNs)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OpenIdConnectProviderARNs").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.STRING) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField> COGNITO_IDENTITY_PROVIDERS_FIELD = SdkField .> builder(MarshallingType.LIST) .getter(getter(UpdateIdentityPoolRequest::cognitoIdentityProviders)) .setter(setter(Builder::cognitoIdentityProviders)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CognitoIdentityProviders").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.SDK_POJO) .constructor(CognitoIdentityProvider::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField> SAML_PROVIDER_AR_NS_FIELD = SdkField .> builder(MarshallingType.LIST) .getter(getter(UpdateIdentityPoolRequest::samlProviderARNs)) .setter(setter(Builder::samlProviderARNs)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("SamlProviderARNs").build(), ListTrait .builder() .memberLocationName(null) .memberFieldInfo( SdkField. builder(MarshallingType.STRING) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("member").build()).build()).build()).build(); private static final SdkField> IDENTITY_POOL_TAGS_FIELD = SdkField .> builder(MarshallingType.MAP) .getter(getter(UpdateIdentityPoolRequest::identityPoolTags)) .setter(setter(Builder::identityPoolTags)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IdentityPoolTags").build(), MapTrait.builder() .keyLocationName("key") .valueLocationName("value") .valueFieldInfo( SdkField. builder(MarshallingType.STRING) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD) .locationName("value").build()).build()).build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(IDENTITY_POOL_ID_FIELD, IDENTITY_POOL_NAME_FIELD, ALLOW_UNAUTHENTICATED_IDENTITIES_FIELD, ALLOW_CLASSIC_FLOW_FIELD, SUPPORTED_LOGIN_PROVIDERS_FIELD, DEVELOPER_PROVIDER_NAME_FIELD, OPEN_ID_CONNECT_PROVIDER_AR_NS_FIELD, COGNITO_IDENTITY_PROVIDERS_FIELD, SAML_PROVIDER_AR_NS_FIELD, IDENTITY_POOL_TAGS_FIELD)); private final String identityPoolId; private final String identityPoolName; private final Boolean allowUnauthenticatedIdentities; private final Boolean allowClassicFlow; private final Map supportedLoginProviders; private final String developerProviderName; private final List openIdConnectProviderARNs; private final List cognitoIdentityProviders; private final List samlProviderARNs; private final Map identityPoolTags; private UpdateIdentityPoolRequest(BuilderImpl builder) { super(builder); this.identityPoolId = builder.identityPoolId; this.identityPoolName = builder.identityPoolName; this.allowUnauthenticatedIdentities = builder.allowUnauthenticatedIdentities; this.allowClassicFlow = builder.allowClassicFlow; this.supportedLoginProviders = builder.supportedLoginProviders; this.developerProviderName = builder.developerProviderName; this.openIdConnectProviderARNs = builder.openIdConnectProviderARNs; this.cognitoIdentityProviders = builder.cognitoIdentityProviders; this.samlProviderARNs = builder.samlProviderARNs; this.identityPoolTags = builder.identityPoolTags; } /** *

* An identity pool ID in the format REGION:GUID. *

* * @return An identity pool ID in the format REGION:GUID. */ public String identityPoolId() { return identityPoolId; } /** *

* A string that you provide. *

* * @return A string that you provide. */ public String identityPoolName() { return identityPoolName; } /** *

* TRUE if the identity pool supports unauthenticated logins. *

* * @return TRUE if the identity pool supports unauthenticated logins. */ public Boolean allowUnauthenticatedIdentities() { return allowUnauthenticatedIdentities; } /** *

* Enables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools * (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide. *

* * @return Enables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools * (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide. */ public Boolean allowClassicFlow() { return allowClassicFlow; } /** * Returns true if the SupportedLoginProviders property was specified by the sender (it may be empty), or false if * the sender did not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS * service. */ public boolean hasSupportedLoginProviders() { return supportedLoginProviders != null && !(supportedLoginProviders instanceof SdkAutoConstructMap); } /** *

* Optional key:value pairs mapping provider names to provider app IDs. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* You can use {@link #hasSupportedLoginProviders()} to see if a value was sent in this field. *

* * @return Optional key:value pairs mapping provider names to provider app IDs. */ public Map supportedLoginProviders() { return supportedLoginProviders; } /** *

* The "domain" by which Cognito will refer to your users. *

* * @return The "domain" by which Cognito will refer to your users. */ public String developerProviderName() { return developerProviderName; } /** * Returns true if the OpenIdConnectProviderARNs property was specified by the sender (it may be empty), or false if * the sender did not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS * service. */ public boolean hasOpenIdConnectProviderARNs() { return openIdConnectProviderARNs != null && !(openIdConnectProviderARNs instanceof SdkAutoConstructList); } /** *

* A list of OpendID Connect provider ARNs. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* You can use {@link #hasOpenIdConnectProviderARNs()} to see if a value was sent in this field. *

* * @return A list of OpendID Connect provider ARNs. */ public List openIdConnectProviderARNs() { return openIdConnectProviderARNs; } /** * Returns true if the CognitoIdentityProviders property was specified by the sender (it may be empty), or false if * the sender did not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS * service. */ public boolean hasCognitoIdentityProviders() { return cognitoIdentityProviders != null && !(cognitoIdentityProviders instanceof SdkAutoConstructList); } /** *

* A list representing an Amazon Cognito user pool and its client ID. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* You can use {@link #hasCognitoIdentityProviders()} to see if a value was sent in this field. *

* * @return A list representing an Amazon Cognito user pool and its client ID. */ public List cognitoIdentityProviders() { return cognitoIdentityProviders; } /** * Returns true if the SamlProviderARNs property was specified by the sender (it may be empty), or false if the * sender did not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS * service. */ public boolean hasSamlProviderARNs() { return samlProviderARNs != null && !(samlProviderARNs instanceof SdkAutoConstructList); } /** *

* An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* You can use {@link #hasSamlProviderARNs()} to see if a value was sent in this field. *

* * @return An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. */ public List samlProviderARNs() { return samlProviderARNs; } /** * Returns true if the IdentityPoolTags property was specified by the sender (it may be empty), or false if the * sender did not specify the value (it will be empty). For responses returned by the SDK, the sender is the AWS * service. */ public boolean hasIdentityPoolTags() { return identityPoolTags != null && !(identityPoolTags instanceof SdkAutoConstructMap); } /** *

* The tags that are assigned to the identity pool. A tag is a label that you can apply to identity pools to * categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* You can use {@link #hasIdentityPoolTags()} to see if a value was sent in this field. *

* * @return The tags that are assigned to the identity pool. A tag is a label that you can apply to identity pools to * categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria. */ public Map identityPoolTags() { return identityPoolTags; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(identityPoolId()); hashCode = 31 * hashCode + Objects.hashCode(identityPoolName()); hashCode = 31 * hashCode + Objects.hashCode(allowUnauthenticatedIdentities()); hashCode = 31 * hashCode + Objects.hashCode(allowClassicFlow()); hashCode = 31 * hashCode + Objects.hashCode(supportedLoginProviders()); hashCode = 31 * hashCode + Objects.hashCode(developerProviderName()); hashCode = 31 * hashCode + Objects.hashCode(openIdConnectProviderARNs()); hashCode = 31 * hashCode + Objects.hashCode(cognitoIdentityProviders()); hashCode = 31 * hashCode + Objects.hashCode(samlProviderARNs()); hashCode = 31 * hashCode + Objects.hashCode(identityPoolTags()); return hashCode; } @Override public boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof UpdateIdentityPoolRequest)) { return false; } UpdateIdentityPoolRequest other = (UpdateIdentityPoolRequest) obj; return Objects.equals(identityPoolId(), other.identityPoolId()) && Objects.equals(identityPoolName(), other.identityPoolName()) && Objects.equals(allowUnauthenticatedIdentities(), other.allowUnauthenticatedIdentities()) && Objects.equals(allowClassicFlow(), other.allowClassicFlow()) && Objects.equals(supportedLoginProviders(), other.supportedLoginProviders()) && Objects.equals(developerProviderName(), other.developerProviderName()) && Objects.equals(openIdConnectProviderARNs(), other.openIdConnectProviderARNs()) && Objects.equals(cognitoIdentityProviders(), other.cognitoIdentityProviders()) && Objects.equals(samlProviderARNs(), other.samlProviderARNs()) && Objects.equals(identityPoolTags(), other.identityPoolTags()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("UpdateIdentityPoolRequest").add("IdentityPoolId", identityPoolId()) .add("IdentityPoolName", identityPoolName()) .add("AllowUnauthenticatedIdentities", allowUnauthenticatedIdentities()) .add("AllowClassicFlow", allowClassicFlow()).add("SupportedLoginProviders", supportedLoginProviders()) .add("DeveloperProviderName", developerProviderName()) .add("OpenIdConnectProviderARNs", openIdConnectProviderARNs()) .add("CognitoIdentityProviders", cognitoIdentityProviders()).add("SamlProviderARNs", samlProviderARNs()) .add("IdentityPoolTags", identityPoolTags()).build(); } public Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "IdentityPoolId": return Optional.ofNullable(clazz.cast(identityPoolId())); case "IdentityPoolName": return Optional.ofNullable(clazz.cast(identityPoolName())); case "AllowUnauthenticatedIdentities": return Optional.ofNullable(clazz.cast(allowUnauthenticatedIdentities())); case "AllowClassicFlow": return Optional.ofNullable(clazz.cast(allowClassicFlow())); case "SupportedLoginProviders": return Optional.ofNullable(clazz.cast(supportedLoginProviders())); case "DeveloperProviderName": return Optional.ofNullable(clazz.cast(developerProviderName())); case "OpenIdConnectProviderARNs": return Optional.ofNullable(clazz.cast(openIdConnectProviderARNs())); case "CognitoIdentityProviders": return Optional.ofNullable(clazz.cast(cognitoIdentityProviders())); case "SamlProviderARNs": return Optional.ofNullable(clazz.cast(samlProviderARNs())); case "IdentityPoolTags": return Optional.ofNullable(clazz.cast(identityPoolTags())); default: return Optional.empty(); } } @Override public List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((UpdateIdentityPoolRequest) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends CognitoIdentityRequest.Builder, SdkPojo, CopyableBuilder { /** *

* An identity pool ID in the format REGION:GUID. *

* * @param identityPoolId * An identity pool ID in the format REGION:GUID. * @return Returns a reference to this object so that method calls can be chained together. */ Builder identityPoolId(String identityPoolId); /** *

* A string that you provide. *

* * @param identityPoolName * A string that you provide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder identityPoolName(String identityPoolName); /** *

* TRUE if the identity pool supports unauthenticated logins. *

* * @param allowUnauthenticatedIdentities * TRUE if the identity pool supports unauthenticated logins. * @return Returns a reference to this object so that method calls can be chained together. */ Builder allowUnauthenticatedIdentities(Boolean allowUnauthenticatedIdentities); /** *

* Enables or disables the Basic (Classic) authentication flow. For more information, see Identity Pools * (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide. *

* * @param allowClassicFlow * Enables or disables the Basic (Classic) authentication flow. For more information, see Identity * Pools (Federated Identities) Authentication Flow in the Amazon Cognito Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder allowClassicFlow(Boolean allowClassicFlow); /** *

* Optional key:value pairs mapping provider names to provider app IDs. *

* * @param supportedLoginProviders * Optional key:value pairs mapping provider names to provider app IDs. * @return Returns a reference to this object so that method calls can be chained together. */ Builder supportedLoginProviders(Map supportedLoginProviders); /** *

* The "domain" by which Cognito will refer to your users. *

* * @param developerProviderName * The "domain" by which Cognito will refer to your users. * @return Returns a reference to this object so that method calls can be chained together. */ Builder developerProviderName(String developerProviderName); /** *

* A list of OpendID Connect provider ARNs. *

* * @param openIdConnectProviderARNs * A list of OpendID Connect provider ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ Builder openIdConnectProviderARNs(Collection openIdConnectProviderARNs); /** *

* A list of OpendID Connect provider ARNs. *

* * @param openIdConnectProviderARNs * A list of OpendID Connect provider ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ Builder openIdConnectProviderARNs(String... openIdConnectProviderARNs); /** *

* A list representing an Amazon Cognito user pool and its client ID. *

* * @param cognitoIdentityProviders * A list representing an Amazon Cognito user pool and its client ID. * @return Returns a reference to this object so that method calls can be chained together. */ Builder cognitoIdentityProviders(Collection cognitoIdentityProviders); /** *

* A list representing an Amazon Cognito user pool and its client ID. *

* * @param cognitoIdentityProviders * A list representing an Amazon Cognito user pool and its client ID. * @return Returns a reference to this object so that method calls can be chained together. */ Builder cognitoIdentityProviders(CognitoIdentityProvider... cognitoIdentityProviders); /** *

* A list representing an Amazon Cognito user pool and its client ID. *

* This is a convenience that creates an instance of the {@link List.Builder} avoiding * the need to create one manually via {@link List#builder()}. * * When the {@link Consumer} completes, {@link List.Builder#build()} is called * immediately and its result is passed to {@link #cognitoIdentityProviders(List)}. * * @param cognitoIdentityProviders * a consumer that will call methods on {@link List.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #cognitoIdentityProviders(List) */ Builder cognitoIdentityProviders(Consumer... cognitoIdentityProviders); /** *

* An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. *

* * @param samlProviderARNs * An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. * @return Returns a reference to this object so that method calls can be chained together. */ Builder samlProviderARNs(Collection samlProviderARNs); /** *

* An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. *

* * @param samlProviderARNs * An array of Amazon Resource Names (ARNs) of the SAML provider for your identity pool. * @return Returns a reference to this object so that method calls can be chained together. */ Builder samlProviderARNs(String... samlProviderARNs); /** *

* The tags that are assigned to the identity pool. A tag is a label that you can apply to identity pools to * categorize and manage them in different ways, such as by purpose, owner, environment, or other criteria. *

* * @param identityPoolTags * The tags that are assigned to the identity pool. A tag is a label that you can apply to identity pools * to categorize and manage them in different ways, such as by purpose, owner, environment, or other * criteria. * @return Returns a reference to this object so that method calls can be chained together. */ Builder identityPoolTags(Map identityPoolTags); @Override Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration); @Override Builder overrideConfiguration(Consumer builderConsumer); } static final class BuilderImpl extends CognitoIdentityRequest.BuilderImpl implements Builder { private String identityPoolId; private String identityPoolName; private Boolean allowUnauthenticatedIdentities; private Boolean allowClassicFlow; private Map supportedLoginProviders = DefaultSdkAutoConstructMap.getInstance(); private String developerProviderName; private List openIdConnectProviderARNs = DefaultSdkAutoConstructList.getInstance(); private List cognitoIdentityProviders = DefaultSdkAutoConstructList.getInstance(); private List samlProviderARNs = DefaultSdkAutoConstructList.getInstance(); private Map identityPoolTags = DefaultSdkAutoConstructMap.getInstance(); private BuilderImpl() { } private BuilderImpl(UpdateIdentityPoolRequest model) { super(model); identityPoolId(model.identityPoolId); identityPoolName(model.identityPoolName); allowUnauthenticatedIdentities(model.allowUnauthenticatedIdentities); allowClassicFlow(model.allowClassicFlow); supportedLoginProviders(model.supportedLoginProviders); developerProviderName(model.developerProviderName); openIdConnectProviderARNs(model.openIdConnectProviderARNs); cognitoIdentityProviders(model.cognitoIdentityProviders); samlProviderARNs(model.samlProviderARNs); identityPoolTags(model.identityPoolTags); } public final String getIdentityPoolId() { return identityPoolId; } @Override public final Builder identityPoolId(String identityPoolId) { this.identityPoolId = identityPoolId; return this; } public final void setIdentityPoolId(String identityPoolId) { this.identityPoolId = identityPoolId; } public final String getIdentityPoolName() { return identityPoolName; } @Override public final Builder identityPoolName(String identityPoolName) { this.identityPoolName = identityPoolName; return this; } public final void setIdentityPoolName(String identityPoolName) { this.identityPoolName = identityPoolName; } public final Boolean getAllowUnauthenticatedIdentities() { return allowUnauthenticatedIdentities; } @Override public final Builder allowUnauthenticatedIdentities(Boolean allowUnauthenticatedIdentities) { this.allowUnauthenticatedIdentities = allowUnauthenticatedIdentities; return this; } public final void setAllowUnauthenticatedIdentities(Boolean allowUnauthenticatedIdentities) { this.allowUnauthenticatedIdentities = allowUnauthenticatedIdentities; } public final Boolean getAllowClassicFlow() { return allowClassicFlow; } @Override public final Builder allowClassicFlow(Boolean allowClassicFlow) { this.allowClassicFlow = allowClassicFlow; return this; } public final void setAllowClassicFlow(Boolean allowClassicFlow) { this.allowClassicFlow = allowClassicFlow; } public final Map getSupportedLoginProviders() { return supportedLoginProviders; } @Override public final Builder supportedLoginProviders(Map supportedLoginProviders) { this.supportedLoginProviders = IdentityProvidersCopier.copy(supportedLoginProviders); return this; } public final void setSupportedLoginProviders(Map supportedLoginProviders) { this.supportedLoginProviders = IdentityProvidersCopier.copy(supportedLoginProviders); } public final String getDeveloperProviderName() { return developerProviderName; } @Override public final Builder developerProviderName(String developerProviderName) { this.developerProviderName = developerProviderName; return this; } public final void setDeveloperProviderName(String developerProviderName) { this.developerProviderName = developerProviderName; } public final Collection getOpenIdConnectProviderARNs() { return openIdConnectProviderARNs; } @Override public final Builder openIdConnectProviderARNs(Collection openIdConnectProviderARNs) { this.openIdConnectProviderARNs = OIDCProviderListCopier.copy(openIdConnectProviderARNs); return this; } @Override @SafeVarargs public final Builder openIdConnectProviderARNs(String... openIdConnectProviderARNs) { openIdConnectProviderARNs(Arrays.asList(openIdConnectProviderARNs)); return this; } public final void setOpenIdConnectProviderARNs(Collection openIdConnectProviderARNs) { this.openIdConnectProviderARNs = OIDCProviderListCopier.copy(openIdConnectProviderARNs); } public final Collection getCognitoIdentityProviders() { return cognitoIdentityProviders != null ? cognitoIdentityProviders.stream().map(CognitoIdentityProvider::toBuilder) .collect(Collectors.toList()) : null; } @Override public final Builder cognitoIdentityProviders(Collection cognitoIdentityProviders) { this.cognitoIdentityProviders = CognitoIdentityProviderListCopier.copy(cognitoIdentityProviders); return this; } @Override @SafeVarargs public final Builder cognitoIdentityProviders(CognitoIdentityProvider... cognitoIdentityProviders) { cognitoIdentityProviders(Arrays.asList(cognitoIdentityProviders)); return this; } @Override @SafeVarargs public final Builder cognitoIdentityProviders(Consumer... cognitoIdentityProviders) { cognitoIdentityProviders(Stream.of(cognitoIdentityProviders) .map(c -> CognitoIdentityProvider.builder().applyMutation(c).build()).collect(Collectors.toList())); return this; } public final void setCognitoIdentityProviders(Collection cognitoIdentityProviders) { this.cognitoIdentityProviders = CognitoIdentityProviderListCopier.copyFromBuilder(cognitoIdentityProviders); } public final Collection getSamlProviderARNs() { return samlProviderARNs; } @Override public final Builder samlProviderARNs(Collection samlProviderARNs) { this.samlProviderARNs = SAMLProviderListCopier.copy(samlProviderARNs); return this; } @Override @SafeVarargs public final Builder samlProviderARNs(String... samlProviderARNs) { samlProviderARNs(Arrays.asList(samlProviderARNs)); return this; } public final void setSamlProviderARNs(Collection samlProviderARNs) { this.samlProviderARNs = SAMLProviderListCopier.copy(samlProviderARNs); } public final Map getIdentityPoolTags() { return identityPoolTags; } @Override public final Builder identityPoolTags(Map identityPoolTags) { this.identityPoolTags = IdentityPoolTagsTypeCopier.copy(identityPoolTags); return this; } public final void setIdentityPoolTags(Map identityPoolTags) { this.identityPoolTags = IdentityPoolTagsTypeCopier.copy(identityPoolTags); } @Override public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) { super.overrideConfiguration(overrideConfiguration); return this; } @Override public Builder overrideConfiguration(Consumer builderConsumer) { super.overrideConfiguration(builderConsumer); return this; } @Override public UpdateIdentityPoolRequest build() { return new UpdateIdentityPoolRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy