Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.eks.model.OidcIdentityProviderConfig Maven / Gradle / Ivy
/*
* 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.eks.model;
import java.io.Serializable;
import java.util.Arrays;
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.Function;
import software.amazon.awssdk.annotations.Generated;
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.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
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 that represents the configuration for an OpenID Connect (OIDC) identity provider.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class OidcIdentityProviderConfig implements SdkPojo, Serializable,
ToCopyableBuilder {
private static final SdkField IDENTITY_PROVIDER_CONFIG_NAME_FIELD = SdkField
. builder(MarshallingType.STRING)
.memberName("identityProviderConfigName")
.getter(getter(OidcIdentityProviderConfig::identityProviderConfigName))
.setter(setter(Builder::identityProviderConfigName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("identityProviderConfigName").build())
.build();
private static final SdkField IDENTITY_PROVIDER_CONFIG_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("identityProviderConfigArn").getter(getter(OidcIdentityProviderConfig::identityProviderConfigArn))
.setter(setter(Builder::identityProviderConfigArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("identityProviderConfigArn").build())
.build();
private static final SdkField CLUSTER_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("clusterName").getter(getter(OidcIdentityProviderConfig::clusterName))
.setter(setter(Builder::clusterName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("clusterName").build()).build();
private static final SdkField ISSUER_URL_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("issuerUrl").getter(getter(OidcIdentityProviderConfig::issuerUrl)).setter(setter(Builder::issuerUrl))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("issuerUrl").build()).build();
private static final SdkField CLIENT_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("clientId").getter(getter(OidcIdentityProviderConfig::clientId)).setter(setter(Builder::clientId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("clientId").build()).build();
private static final SdkField USERNAME_CLAIM_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("usernameClaim").getter(getter(OidcIdentityProviderConfig::usernameClaim))
.setter(setter(Builder::usernameClaim))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("usernameClaim").build()).build();
private static final SdkField USERNAME_PREFIX_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("usernamePrefix").getter(getter(OidcIdentityProviderConfig::usernamePrefix))
.setter(setter(Builder::usernamePrefix))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("usernamePrefix").build()).build();
private static final SdkField GROUPS_CLAIM_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("groupsClaim").getter(getter(OidcIdentityProviderConfig::groupsClaim))
.setter(setter(Builder::groupsClaim))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("groupsClaim").build()).build();
private static final SdkField GROUPS_PREFIX_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("groupsPrefix").getter(getter(OidcIdentityProviderConfig::groupsPrefix))
.setter(setter(Builder::groupsPrefix))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("groupsPrefix").build()).build();
private static final SdkField> REQUIRED_CLAIMS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("requiredClaims")
.getter(getter(OidcIdentityProviderConfig::requiredClaims))
.setter(setter(Builder::requiredClaims))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("requiredClaims").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> TAGS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("tags")
.getter(getter(OidcIdentityProviderConfig::tags))
.setter(setter(Builder::tags))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("tags").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 STATUS_FIELD = SdkField. builder(MarshallingType.STRING).memberName("status")
.getter(getter(OidcIdentityProviderConfig::statusAsString)).setter(setter(Builder::status))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("status").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(
IDENTITY_PROVIDER_CONFIG_NAME_FIELD, IDENTITY_PROVIDER_CONFIG_ARN_FIELD, CLUSTER_NAME_FIELD, ISSUER_URL_FIELD,
CLIENT_ID_FIELD, USERNAME_CLAIM_FIELD, USERNAME_PREFIX_FIELD, GROUPS_CLAIM_FIELD, GROUPS_PREFIX_FIELD,
REQUIRED_CLAIMS_FIELD, TAGS_FIELD, STATUS_FIELD));
private static final long serialVersionUID = 1L;
private final String identityProviderConfigName;
private final String identityProviderConfigArn;
private final String clusterName;
private final String issuerUrl;
private final String clientId;
private final String usernameClaim;
private final String usernamePrefix;
private final String groupsClaim;
private final String groupsPrefix;
private final Map requiredClaims;
private final Map tags;
private final String status;
private OidcIdentityProviderConfig(BuilderImpl builder) {
this.identityProviderConfigName = builder.identityProviderConfigName;
this.identityProviderConfigArn = builder.identityProviderConfigArn;
this.clusterName = builder.clusterName;
this.issuerUrl = builder.issuerUrl;
this.clientId = builder.clientId;
this.usernameClaim = builder.usernameClaim;
this.usernamePrefix = builder.usernamePrefix;
this.groupsClaim = builder.groupsClaim;
this.groupsPrefix = builder.groupsPrefix;
this.requiredClaims = builder.requiredClaims;
this.tags = builder.tags;
this.status = builder.status;
}
/**
*
* The name of the configuration.
*
*
* @return The name of the configuration.
*/
public final String identityProviderConfigName() {
return identityProviderConfigName;
}
/**
*
* The ARN of the configuration.
*
*
* @return The ARN of the configuration.
*/
public final String identityProviderConfigArn() {
return identityProviderConfigArn;
}
/**
*
* The cluster that the configuration is associated to.
*
*
* @return The cluster that the configuration is associated to.
*/
public final String clusterName() {
return clusterName;
}
/**
*
* The URL of the OIDC identity provider that allows the API server to discover public signing keys for verifying
* tokens.
*
*
* @return The URL of the OIDC identity provider that allows the API server to discover public signing keys for
* verifying tokens.
*/
public final String issuerUrl() {
return issuerUrl;
}
/**
*
* This is also known as audience . The ID of the client application that makes authentication requests to the
* OIDC identity provider.
*
*
* @return This is also known as audience . The ID of the client application that makes authentication
* requests to the OIDC identity provider.
*/
public final String clientId() {
return clientId;
}
/**
*
* The JSON Web token (JWT) claim that is used as the username.
*
*
* @return The JSON Web token (JWT) claim that is used as the username.
*/
public final String usernameClaim() {
return usernameClaim;
}
/**
*
* The prefix that is prepended to username claims to prevent clashes with existing names. The prefix can't contain
* system:
*
*
* @return The prefix that is prepended to username claims to prevent clashes with existing names. The prefix can't
* contain system:
*/
public final String usernamePrefix() {
return usernamePrefix;
}
/**
*
* The JSON web token (JWT) claim that the provider uses to return your groups.
*
*
* @return The JSON web token (JWT) claim that the provider uses to return your groups.
*/
public final String groupsClaim() {
return groupsClaim;
}
/**
*
* The prefix that is prepended to group claims to prevent clashes with existing names (such as system:
* groups). For example, the value oidc:
creates group names like oidc:engineering
and
* oidc:infra
. The prefix can't contain system:
*
*
* @return The prefix that is prepended to group claims to prevent clashes with existing names (such as
* system:
groups). For example, the value oidc:
creates group names like
* oidc:engineering
and oidc:infra
. The prefix can't contain system:
*/
public final String groupsPrefix() {
return groupsPrefix;
}
/**
* For responses, this returns true if the service returned a value for the RequiredClaims property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasRequiredClaims() {
return requiredClaims != null && !(requiredClaims instanceof SdkAutoConstructMap);
}
/**
*
* The key-value pairs that describe required claims in the identity token. If set, each claim is verified to be
* present in the token with a matching value.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasRequiredClaims} method.
*
*
* @return The key-value pairs that describe required claims in the identity token. If set, each claim is verified
* to be present in the token with a matching value.
*/
public final Map requiredClaims() {
return requiredClaims;
}
/**
* For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
* the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
* because the SDK will never return a null collection or map, but you may need to differentiate between the service
* returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
* if a value for the property was specified in the request builder, and false if a value was not specified.
*/
public final boolean hasTags() {
return tags != null && !(tags instanceof SdkAutoConstructMap);
}
/**
*
* The metadata to apply to the provider configuration to assist with categorization and organization. Each tag
* consists of a key and an optional value. You define both.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasTags} method.
*
*
* @return The metadata to apply to the provider configuration to assist with categorization and organization. Each
* tag consists of a key and an optional value. You define both.
*/
public final Map tags() {
return tags;
}
/**
*
* The status of the OIDC identity provider.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #status} will
* return {@link ConfigStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #statusAsString}.
*
*
* @return The status of the OIDC identity provider.
* @see ConfigStatus
*/
public final ConfigStatus status() {
return ConfigStatus.fromValue(status);
}
/**
*
* The status of the OIDC identity provider.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #status} will
* return {@link ConfigStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #statusAsString}.
*
*
* @return The status of the OIDC identity provider.
* @see ConfigStatus
*/
public final String statusAsString() {
return status;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(identityProviderConfigName());
hashCode = 31 * hashCode + Objects.hashCode(identityProviderConfigArn());
hashCode = 31 * hashCode + Objects.hashCode(clusterName());
hashCode = 31 * hashCode + Objects.hashCode(issuerUrl());
hashCode = 31 * hashCode + Objects.hashCode(clientId());
hashCode = 31 * hashCode + Objects.hashCode(usernameClaim());
hashCode = 31 * hashCode + Objects.hashCode(usernamePrefix());
hashCode = 31 * hashCode + Objects.hashCode(groupsClaim());
hashCode = 31 * hashCode + Objects.hashCode(groupsPrefix());
hashCode = 31 * hashCode + Objects.hashCode(hasRequiredClaims() ? requiredClaims() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
hashCode = 31 * hashCode + Objects.hashCode(statusAsString());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof OidcIdentityProviderConfig)) {
return false;
}
OidcIdentityProviderConfig other = (OidcIdentityProviderConfig) obj;
return Objects.equals(identityProviderConfigName(), other.identityProviderConfigName())
&& Objects.equals(identityProviderConfigArn(), other.identityProviderConfigArn())
&& Objects.equals(clusterName(), other.clusterName()) && Objects.equals(issuerUrl(), other.issuerUrl())
&& Objects.equals(clientId(), other.clientId()) && Objects.equals(usernameClaim(), other.usernameClaim())
&& Objects.equals(usernamePrefix(), other.usernamePrefix()) && Objects.equals(groupsClaim(), other.groupsClaim())
&& Objects.equals(groupsPrefix(), other.groupsPrefix()) && hasRequiredClaims() == other.hasRequiredClaims()
&& Objects.equals(requiredClaims(), other.requiredClaims()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags()) && Objects.equals(statusAsString(), other.statusAsString());
}
/**
* 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 final String toString() {
return ToString.builder("OidcIdentityProviderConfig").add("IdentityProviderConfigName", identityProviderConfigName())
.add("IdentityProviderConfigArn", identityProviderConfigArn()).add("ClusterName", clusterName())
.add("IssuerUrl", issuerUrl()).add("ClientId", clientId()).add("UsernameClaim", usernameClaim())
.add("UsernamePrefix", usernamePrefix()).add("GroupsClaim", groupsClaim()).add("GroupsPrefix", groupsPrefix())
.add("RequiredClaims", hasRequiredClaims() ? requiredClaims() : null).add("Tags", hasTags() ? tags() : null)
.add("Status", statusAsString()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "identityProviderConfigName":
return Optional.ofNullable(clazz.cast(identityProviderConfigName()));
case "identityProviderConfigArn":
return Optional.ofNullable(clazz.cast(identityProviderConfigArn()));
case "clusterName":
return Optional.ofNullable(clazz.cast(clusterName()));
case "issuerUrl":
return Optional.ofNullable(clazz.cast(issuerUrl()));
case "clientId":
return Optional.ofNullable(clazz.cast(clientId()));
case "usernameClaim":
return Optional.ofNullable(clazz.cast(usernameClaim()));
case "usernamePrefix":
return Optional.ofNullable(clazz.cast(usernamePrefix()));
case "groupsClaim":
return Optional.ofNullable(clazz.cast(groupsClaim()));
case "groupsPrefix":
return Optional.ofNullable(clazz.cast(groupsPrefix()));
case "requiredClaims":
return Optional.ofNullable(clazz.cast(requiredClaims()));
case "tags":
return Optional.ofNullable(clazz.cast(tags()));
case "status":
return Optional.ofNullable(clazz.cast(statusAsString()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((OidcIdentityProviderConfig) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends SdkPojo, CopyableBuilder {
/**
*
* The name of the configuration.
*
*
* @param identityProviderConfigName
* The name of the configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder identityProviderConfigName(String identityProviderConfigName);
/**
*
* The ARN of the configuration.
*
*
* @param identityProviderConfigArn
* The ARN of the configuration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder identityProviderConfigArn(String identityProviderConfigArn);
/**
*
* The cluster that the configuration is associated to.
*
*
* @param clusterName
* The cluster that the configuration is associated to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder clusterName(String clusterName);
/**
*
* The URL of the OIDC identity provider that allows the API server to discover public signing keys for
* verifying tokens.
*
*
* @param issuerUrl
* The URL of the OIDC identity provider that allows the API server to discover public signing keys for
* verifying tokens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder issuerUrl(String issuerUrl);
/**
*
* This is also known as audience . The ID of the client application that makes authentication requests to
* the OIDC identity provider.
*
*
* @param clientId
* This is also known as audience . The ID of the client application that makes authentication
* requests to the OIDC identity provider.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder clientId(String clientId);
/**
*
* The JSON Web token (JWT) claim that is used as the username.
*
*
* @param usernameClaim
* The JSON Web token (JWT) claim that is used as the username.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder usernameClaim(String usernameClaim);
/**
*
* The prefix that is prepended to username claims to prevent clashes with existing names. The prefix can't
* contain system:
*
*
* @param usernamePrefix
* The prefix that is prepended to username claims to prevent clashes with existing names. The prefix
* can't contain system:
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder usernamePrefix(String usernamePrefix);
/**
*
* The JSON web token (JWT) claim that the provider uses to return your groups.
*
*
* @param groupsClaim
* The JSON web token (JWT) claim that the provider uses to return your groups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder groupsClaim(String groupsClaim);
/**
*
* The prefix that is prepended to group claims to prevent clashes with existing names (such as
* system:
groups). For example, the value oidc:
creates group names like
* oidc:engineering
and oidc:infra
. The prefix can't contain system:
*
*
* @param groupsPrefix
* The prefix that is prepended to group claims to prevent clashes with existing names (such as
* system:
groups). For example, the value oidc:
creates group names like
* oidc:engineering
and oidc:infra
. The prefix can't contain
* system:
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder groupsPrefix(String groupsPrefix);
/**
*
* The key-value pairs that describe required claims in the identity token. If set, each claim is verified to be
* present in the token with a matching value.
*
*
* @param requiredClaims
* The key-value pairs that describe required claims in the identity token. If set, each claim is
* verified to be present in the token with a matching value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder requiredClaims(Map requiredClaims);
/**
*
* The metadata to apply to the provider configuration to assist with categorization and organization. Each tag
* consists of a key and an optional value. You define both.
*
*
* @param tags
* The metadata to apply to the provider configuration to assist with categorization and organization.
* Each tag consists of a key and an optional value. You define both.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Map tags);
/**
*
* The status of the OIDC identity provider.
*
*
* @param status
* The status of the OIDC identity provider.
* @see ConfigStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConfigStatus
*/
Builder status(String status);
/**
*
* The status of the OIDC identity provider.
*
*
* @param status
* The status of the OIDC identity provider.
* @see ConfigStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConfigStatus
*/
Builder status(ConfigStatus status);
}
static final class BuilderImpl implements Builder {
private String identityProviderConfigName;
private String identityProviderConfigArn;
private String clusterName;
private String issuerUrl;
private String clientId;
private String usernameClaim;
private String usernamePrefix;
private String groupsClaim;
private String groupsPrefix;
private Map requiredClaims = DefaultSdkAutoConstructMap.getInstance();
private Map tags = DefaultSdkAutoConstructMap.getInstance();
private String status;
private BuilderImpl() {
}
private BuilderImpl(OidcIdentityProviderConfig model) {
identityProviderConfigName(model.identityProviderConfigName);
identityProviderConfigArn(model.identityProviderConfigArn);
clusterName(model.clusterName);
issuerUrl(model.issuerUrl);
clientId(model.clientId);
usernameClaim(model.usernameClaim);
usernamePrefix(model.usernamePrefix);
groupsClaim(model.groupsClaim);
groupsPrefix(model.groupsPrefix);
requiredClaims(model.requiredClaims);
tags(model.tags);
status(model.status);
}
public final String getIdentityProviderConfigName() {
return identityProviderConfigName;
}
public final void setIdentityProviderConfigName(String identityProviderConfigName) {
this.identityProviderConfigName = identityProviderConfigName;
}
@Override
public final Builder identityProviderConfigName(String identityProviderConfigName) {
this.identityProviderConfigName = identityProviderConfigName;
return this;
}
public final String getIdentityProviderConfigArn() {
return identityProviderConfigArn;
}
public final void setIdentityProviderConfigArn(String identityProviderConfigArn) {
this.identityProviderConfigArn = identityProviderConfigArn;
}
@Override
public final Builder identityProviderConfigArn(String identityProviderConfigArn) {
this.identityProviderConfigArn = identityProviderConfigArn;
return this;
}
public final String getClusterName() {
return clusterName;
}
public final void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
@Override
public final Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
public final String getIssuerUrl() {
return issuerUrl;
}
public final void setIssuerUrl(String issuerUrl) {
this.issuerUrl = issuerUrl;
}
@Override
public final Builder issuerUrl(String issuerUrl) {
this.issuerUrl = issuerUrl;
return this;
}
public final String getClientId() {
return clientId;
}
public final void setClientId(String clientId) {
this.clientId = clientId;
}
@Override
public final Builder clientId(String clientId) {
this.clientId = clientId;
return this;
}
public final String getUsernameClaim() {
return usernameClaim;
}
public final void setUsernameClaim(String usernameClaim) {
this.usernameClaim = usernameClaim;
}
@Override
public final Builder usernameClaim(String usernameClaim) {
this.usernameClaim = usernameClaim;
return this;
}
public final String getUsernamePrefix() {
return usernamePrefix;
}
public final void setUsernamePrefix(String usernamePrefix) {
this.usernamePrefix = usernamePrefix;
}
@Override
public final Builder usernamePrefix(String usernamePrefix) {
this.usernamePrefix = usernamePrefix;
return this;
}
public final String getGroupsClaim() {
return groupsClaim;
}
public final void setGroupsClaim(String groupsClaim) {
this.groupsClaim = groupsClaim;
}
@Override
public final Builder groupsClaim(String groupsClaim) {
this.groupsClaim = groupsClaim;
return this;
}
public final String getGroupsPrefix() {
return groupsPrefix;
}
public final void setGroupsPrefix(String groupsPrefix) {
this.groupsPrefix = groupsPrefix;
}
@Override
public final Builder groupsPrefix(String groupsPrefix) {
this.groupsPrefix = groupsPrefix;
return this;
}
public final Map getRequiredClaims() {
if (requiredClaims instanceof SdkAutoConstructMap) {
return null;
}
return requiredClaims;
}
public final void setRequiredClaims(Map requiredClaims) {
this.requiredClaims = _requiredClaimsMapCopier.copy(requiredClaims);
}
@Override
public final Builder requiredClaims(Map requiredClaims) {
this.requiredClaims = _requiredClaimsMapCopier.copy(requiredClaims);
return this;
}
public final Map getTags() {
if (tags instanceof SdkAutoConstructMap) {
return null;
}
return tags;
}
public final void setTags(Map tags) {
this.tags = TagMapCopier.copy(tags);
}
@Override
public final Builder tags(Map tags) {
this.tags = TagMapCopier.copy(tags);
return this;
}
public final String getStatus() {
return status;
}
public final void setStatus(String status) {
this.status = status;
}
@Override
public final Builder status(String status) {
this.status = status;
return this;
}
@Override
public final Builder status(ConfigStatus status) {
this.status(status == null ? null : status.toString());
return this;
}
@Override
public OidcIdentityProviderConfig build() {
return new OidcIdentityProviderConfig(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}