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.
com.pulumi.okta.idp.SocialArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.okta.idp;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class SocialArgs extends com.pulumi.resources.ResourceArgs {
public static final SocialArgs Empty = new SocialArgs();
/**
* Specifies the account linking action for an IdP user. Default: `AUTO`
*
*/
@Import(name="accountLinkAction")
private @Nullable Output accountLinkAction;
/**
* @return Specifies the account linking action for an IdP user. Default: `AUTO`
*
*/
public Optional> accountLinkAction() {
return Optional.ofNullable(this.accountLinkAction);
}
/**
* Group memberships to determine link candidates.
*
*/
@Import(name="accountLinkGroupIncludes")
private @Nullable Output> accountLinkGroupIncludes;
/**
* @return Group memberships to determine link candidates.
*
*/
public Optional>> accountLinkGroupIncludes() {
return Optional.ofNullable(this.accountLinkGroupIncludes);
}
/**
* The Key ID that you obtained from Apple when you created the private key for the client
*
*/
@Import(name="appleKid")
private @Nullable Output appleKid;
/**
* @return The Key ID that you obtained from Apple when you created the private key for the client
*
*/
public Optional> appleKid() {
return Optional.ofNullable(this.appleKid);
}
/**
* The Key ID that you obtained from Apple when you created the private key for the client. PrivateKey is required when resource is first created. For all consecutive updates, it can be empty/omitted and keeps the existing value if it is empty/omitted. PrivateKey isn't returned when importing this resource.
*
*/
@Import(name="applePrivateKey")
private @Nullable Output applePrivateKey;
/**
* @return The Key ID that you obtained from Apple when you created the private key for the client. PrivateKey is required when resource is first created. For all consecutive updates, it can be empty/omitted and keeps the existing value if it is empty/omitted. PrivateKey isn't returned when importing this resource.
*
*/
public Optional> applePrivateKey() {
return Optional.ofNullable(this.applePrivateKey);
}
/**
* The Team ID associated with your Apple developer account
*
*/
@Import(name="appleTeamId")
private @Nullable Output appleTeamId;
/**
* @return The Team ID associated with your Apple developer account
*
*/
public Optional> appleTeamId() {
return Optional.ofNullable(this.appleTeamId);
}
/**
* Unique identifier issued by AS for the Okta IdP instance.
*
*/
@Import(name="clientId")
private @Nullable Output clientId;
/**
* @return Unique identifier issued by AS for the Okta IdP instance.
*
*/
public Optional> clientId() {
return Optional.ofNullable(this.clientId);
}
/**
* Client secret issued by AS for the Okta IdP instance.
*
*/
@Import(name="clientSecret")
private @Nullable Output clientSecret;
/**
* @return Client secret issued by AS for the Okta IdP instance.
*
*/
public Optional> clientSecret() {
return Optional.ofNullable(this.clientSecret);
}
/**
* Action for a previously deprovisioned IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
*/
@Import(name="deprovisionedAction")
private @Nullable Output deprovisionedAction;
/**
* @return Action for a previously deprovisioned IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
*/
public Optional> deprovisionedAction() {
return Optional.ofNullable(this.deprovisionedAction);
}
/**
* Provisioning action for IdP user's group memberships. It can be `NONE`, `SYNC`, `APPEND`, or `ASSIGN`. Default: `NONE`
*
*/
@Import(name="groupsAction")
private @Nullable Output groupsAction;
/**
* @return Provisioning action for IdP user's group memberships. It can be `NONE`, `SYNC`, `APPEND`, or `ASSIGN`. Default: `NONE`
*
*/
public Optional> groupsAction() {
return Optional.ofNullable(this.groupsAction);
}
/**
* List of Okta Group IDs to add an IdP user as a member with the `ASSIGN` `groups_action`.
*
*/
@Import(name="groupsAssignments")
private @Nullable Output> groupsAssignments;
/**
* @return List of Okta Group IDs to add an IdP user as a member with the `ASSIGN` `groups_action`.
*
*/
public Optional>> groupsAssignments() {
return Optional.ofNullable(this.groupsAssignments);
}
/**
* IdP user profile attribute name (case-insensitive) for an array value that contains group memberships.
*
*/
@Import(name="groupsAttribute")
private @Nullable Output groupsAttribute;
/**
* @return IdP user profile attribute name (case-insensitive) for an array value that contains group memberships.
*
*/
public Optional> groupsAttribute() {
return Optional.ofNullable(this.groupsAttribute);
}
/**
* Whitelist of Okta Group identifiers that are allowed for the `APPEND` or `SYNC` `groups_action`.
*
*/
@Import(name="groupsFilters")
private @Nullable Output> groupsFilters;
/**
* @return Whitelist of Okta Group identifiers that are allowed for the `APPEND` or `SYNC` `groups_action`.
*
*/
public Optional>> groupsFilters() {
return Optional.ofNullable(this.groupsFilters);
}
/**
* Indicates whether Okta uses the original Okta org domain URL, or a custom domain URL. It can be `ORG_URL` or `CUSTOM_URL`. Default: `ORG_URL`
*
*/
@Import(name="issuerMode")
private @Nullable Output issuerMode;
/**
* @return Indicates whether Okta uses the original Okta org domain URL, or a custom domain URL. It can be `ORG_URL` or `CUSTOM_URL`. Default: `ORG_URL`
*
*/
public Optional> issuerMode() {
return Optional.ofNullable(this.issuerMode);
}
/**
* Maximum allowable clock-skew when processing messages from the IdP.
*
*/
@Import(name="maxClockSkew")
private @Nullable Output maxClockSkew;
/**
* @return Maximum allowable clock-skew when processing messages from the IdP.
*
*/
public Optional> maxClockSkew() {
return Optional.ofNullable(this.maxClockSkew);
}
/**
* Name of the IdP
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Name of the IdP
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Determines if the IdP should act as a source of truth for user profile attributes.
*
*/
@Import(name="profileMaster")
private @Nullable Output profileMaster;
/**
* @return Determines if the IdP should act as a source of truth for user profile attributes.
*
*/
public Optional> profileMaster() {
return Optional.ofNullable(this.profileMaster);
}
/**
* The type of protocol to use. It can be `OIDC` or `OAUTH2`. Default: `OAUTH2`
*
*/
@Import(name="protocolType")
private @Nullable Output protocolType;
/**
* @return The type of protocol to use. It can be `OIDC` or `OAUTH2`. Default: `OAUTH2`
*
*/
public Optional> protocolType() {
return Optional.ofNullable(this.protocolType);
}
/**
* Provisioning action for an IdP user during authentication. Default: `AUTO`
*
*/
@Import(name="provisioningAction")
private @Nullable Output provisioningAction;
/**
* @return Provisioning action for an IdP user during authentication. Default: `AUTO`
*
*/
public Optional> provisioningAction() {
return Optional.ofNullable(this.provisioningAction);
}
/**
* The scopes of the IdP.
*
*/
@Import(name="scopes", required=true)
private Output> scopes;
/**
* @return The scopes of the IdP.
*
*/
public Output> scopes() {
return this.scopes;
}
/**
* Default to `ACTIVE`
*
*/
@Import(name="status")
private @Nullable Output status;
/**
* @return Default to `ACTIVE`
*
*/
public Optional> status() {
return Optional.ofNullable(this.status);
}
/**
* Okta user profile attribute for matching transformed IdP username. Only for matchType `CUSTOM_ATTRIBUTE`.
*
*/
@Import(name="subjectMatchAttribute")
private @Nullable Output subjectMatchAttribute;
/**
* @return Okta user profile attribute for matching transformed IdP username. Only for matchType `CUSTOM_ATTRIBUTE`.
*
*/
public Optional> subjectMatchAttribute() {
return Optional.ofNullable(this.subjectMatchAttribute);
}
/**
* Determines the Okta user profile attribute match conditions for account linking and authentication of the transformed IdP username. By default, it is set to `USERNAME`. It can be set to `USERNAME`, `EMAIL`, `USERNAME_OR_EMAIL` or `CUSTOM_ATTRIBUTE`.
*
*/
@Import(name="subjectMatchType")
private @Nullable Output subjectMatchType;
/**
* @return Determines the Okta user profile attribute match conditions for account linking and authentication of the transformed IdP username. By default, it is set to `USERNAME`. It can be set to `USERNAME`, `EMAIL`, `USERNAME_OR_EMAIL` or `CUSTOM_ATTRIBUTE`.
*
*/
public Optional> subjectMatchType() {
return Optional.ofNullable(this.subjectMatchType);
}
/**
* Action for a previously suspended IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
*/
@Import(name="suspendedAction")
private @Nullable Output suspendedAction;
/**
* @return Action for a previously suspended IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
*/
public Optional> suspendedAction() {
return Optional.ofNullable(this.suspendedAction);
}
/**
* Identity Provider Types: https://developer.okta.com/docs/reference/api/idps/#identity-provider-type
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return Identity Provider Types: https://developer.okta.com/docs/reference/api/idps/#identity-provider-type
*
*/
public Output type() {
return this.type;
}
/**
* Okta EL Expression to generate or transform a unique username for the IdP user. Default: `idpuser.email`
*
*/
@Import(name="usernameTemplate")
private @Nullable Output usernameTemplate;
/**
* @return Okta EL Expression to generate or transform a unique username for the IdP user. Default: `idpuser.email`
*
*/
public Optional> usernameTemplate() {
return Optional.ofNullable(this.usernameTemplate);
}
private SocialArgs() {}
private SocialArgs(SocialArgs $) {
this.accountLinkAction = $.accountLinkAction;
this.accountLinkGroupIncludes = $.accountLinkGroupIncludes;
this.appleKid = $.appleKid;
this.applePrivateKey = $.applePrivateKey;
this.appleTeamId = $.appleTeamId;
this.clientId = $.clientId;
this.clientSecret = $.clientSecret;
this.deprovisionedAction = $.deprovisionedAction;
this.groupsAction = $.groupsAction;
this.groupsAssignments = $.groupsAssignments;
this.groupsAttribute = $.groupsAttribute;
this.groupsFilters = $.groupsFilters;
this.issuerMode = $.issuerMode;
this.maxClockSkew = $.maxClockSkew;
this.name = $.name;
this.profileMaster = $.profileMaster;
this.protocolType = $.protocolType;
this.provisioningAction = $.provisioningAction;
this.scopes = $.scopes;
this.status = $.status;
this.subjectMatchAttribute = $.subjectMatchAttribute;
this.subjectMatchType = $.subjectMatchType;
this.suspendedAction = $.suspendedAction;
this.type = $.type;
this.usernameTemplate = $.usernameTemplate;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SocialArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private SocialArgs $;
public Builder() {
$ = new SocialArgs();
}
public Builder(SocialArgs defaults) {
$ = new SocialArgs(Objects.requireNonNull(defaults));
}
/**
* @param accountLinkAction Specifies the account linking action for an IdP user. Default: `AUTO`
*
* @return builder
*
*/
public Builder accountLinkAction(@Nullable Output accountLinkAction) {
$.accountLinkAction = accountLinkAction;
return this;
}
/**
* @param accountLinkAction Specifies the account linking action for an IdP user. Default: `AUTO`
*
* @return builder
*
*/
public Builder accountLinkAction(String accountLinkAction) {
return accountLinkAction(Output.of(accountLinkAction));
}
/**
* @param accountLinkGroupIncludes Group memberships to determine link candidates.
*
* @return builder
*
*/
public Builder accountLinkGroupIncludes(@Nullable Output> accountLinkGroupIncludes) {
$.accountLinkGroupIncludes = accountLinkGroupIncludes;
return this;
}
/**
* @param accountLinkGroupIncludes Group memberships to determine link candidates.
*
* @return builder
*
*/
public Builder accountLinkGroupIncludes(List accountLinkGroupIncludes) {
return accountLinkGroupIncludes(Output.of(accountLinkGroupIncludes));
}
/**
* @param accountLinkGroupIncludes Group memberships to determine link candidates.
*
* @return builder
*
*/
public Builder accountLinkGroupIncludes(String... accountLinkGroupIncludes) {
return accountLinkGroupIncludes(List.of(accountLinkGroupIncludes));
}
/**
* @param appleKid The Key ID that you obtained from Apple when you created the private key for the client
*
* @return builder
*
*/
public Builder appleKid(@Nullable Output appleKid) {
$.appleKid = appleKid;
return this;
}
/**
* @param appleKid The Key ID that you obtained from Apple when you created the private key for the client
*
* @return builder
*
*/
public Builder appleKid(String appleKid) {
return appleKid(Output.of(appleKid));
}
/**
* @param applePrivateKey The Key ID that you obtained from Apple when you created the private key for the client. PrivateKey is required when resource is first created. For all consecutive updates, it can be empty/omitted and keeps the existing value if it is empty/omitted. PrivateKey isn't returned when importing this resource.
*
* @return builder
*
*/
public Builder applePrivateKey(@Nullable Output applePrivateKey) {
$.applePrivateKey = applePrivateKey;
return this;
}
/**
* @param applePrivateKey The Key ID that you obtained from Apple when you created the private key for the client. PrivateKey is required when resource is first created. For all consecutive updates, it can be empty/omitted and keeps the existing value if it is empty/omitted. PrivateKey isn't returned when importing this resource.
*
* @return builder
*
*/
public Builder applePrivateKey(String applePrivateKey) {
return applePrivateKey(Output.of(applePrivateKey));
}
/**
* @param appleTeamId The Team ID associated with your Apple developer account
*
* @return builder
*
*/
public Builder appleTeamId(@Nullable Output appleTeamId) {
$.appleTeamId = appleTeamId;
return this;
}
/**
* @param appleTeamId The Team ID associated with your Apple developer account
*
* @return builder
*
*/
public Builder appleTeamId(String appleTeamId) {
return appleTeamId(Output.of(appleTeamId));
}
/**
* @param clientId Unique identifier issued by AS for the Okta IdP instance.
*
* @return builder
*
*/
public Builder clientId(@Nullable Output clientId) {
$.clientId = clientId;
return this;
}
/**
* @param clientId Unique identifier issued by AS for the Okta IdP instance.
*
* @return builder
*
*/
public Builder clientId(String clientId) {
return clientId(Output.of(clientId));
}
/**
* @param clientSecret Client secret issued by AS for the Okta IdP instance.
*
* @return builder
*
*/
public Builder clientSecret(@Nullable Output clientSecret) {
$.clientSecret = clientSecret;
return this;
}
/**
* @param clientSecret Client secret issued by AS for the Okta IdP instance.
*
* @return builder
*
*/
public Builder clientSecret(String clientSecret) {
return clientSecret(Output.of(clientSecret));
}
/**
* @param deprovisionedAction Action for a previously deprovisioned IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
* @return builder
*
*/
public Builder deprovisionedAction(@Nullable Output deprovisionedAction) {
$.deprovisionedAction = deprovisionedAction;
return this;
}
/**
* @param deprovisionedAction Action for a previously deprovisioned IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
* @return builder
*
*/
public Builder deprovisionedAction(String deprovisionedAction) {
return deprovisionedAction(Output.of(deprovisionedAction));
}
/**
* @param groupsAction Provisioning action for IdP user's group memberships. It can be `NONE`, `SYNC`, `APPEND`, or `ASSIGN`. Default: `NONE`
*
* @return builder
*
*/
public Builder groupsAction(@Nullable Output groupsAction) {
$.groupsAction = groupsAction;
return this;
}
/**
* @param groupsAction Provisioning action for IdP user's group memberships. It can be `NONE`, `SYNC`, `APPEND`, or `ASSIGN`. Default: `NONE`
*
* @return builder
*
*/
public Builder groupsAction(String groupsAction) {
return groupsAction(Output.of(groupsAction));
}
/**
* @param groupsAssignments List of Okta Group IDs to add an IdP user as a member with the `ASSIGN` `groups_action`.
*
* @return builder
*
*/
public Builder groupsAssignments(@Nullable Output> groupsAssignments) {
$.groupsAssignments = groupsAssignments;
return this;
}
/**
* @param groupsAssignments List of Okta Group IDs to add an IdP user as a member with the `ASSIGN` `groups_action`.
*
* @return builder
*
*/
public Builder groupsAssignments(List groupsAssignments) {
return groupsAssignments(Output.of(groupsAssignments));
}
/**
* @param groupsAssignments List of Okta Group IDs to add an IdP user as a member with the `ASSIGN` `groups_action`.
*
* @return builder
*
*/
public Builder groupsAssignments(String... groupsAssignments) {
return groupsAssignments(List.of(groupsAssignments));
}
/**
* @param groupsAttribute IdP user profile attribute name (case-insensitive) for an array value that contains group memberships.
*
* @return builder
*
*/
public Builder groupsAttribute(@Nullable Output groupsAttribute) {
$.groupsAttribute = groupsAttribute;
return this;
}
/**
* @param groupsAttribute IdP user profile attribute name (case-insensitive) for an array value that contains group memberships.
*
* @return builder
*
*/
public Builder groupsAttribute(String groupsAttribute) {
return groupsAttribute(Output.of(groupsAttribute));
}
/**
* @param groupsFilters Whitelist of Okta Group identifiers that are allowed for the `APPEND` or `SYNC` `groups_action`.
*
* @return builder
*
*/
public Builder groupsFilters(@Nullable Output> groupsFilters) {
$.groupsFilters = groupsFilters;
return this;
}
/**
* @param groupsFilters Whitelist of Okta Group identifiers that are allowed for the `APPEND` or `SYNC` `groups_action`.
*
* @return builder
*
*/
public Builder groupsFilters(List groupsFilters) {
return groupsFilters(Output.of(groupsFilters));
}
/**
* @param groupsFilters Whitelist of Okta Group identifiers that are allowed for the `APPEND` or `SYNC` `groups_action`.
*
* @return builder
*
*/
public Builder groupsFilters(String... groupsFilters) {
return groupsFilters(List.of(groupsFilters));
}
/**
* @param issuerMode Indicates whether Okta uses the original Okta org domain URL, or a custom domain URL. It can be `ORG_URL` or `CUSTOM_URL`. Default: `ORG_URL`
*
* @return builder
*
*/
public Builder issuerMode(@Nullable Output issuerMode) {
$.issuerMode = issuerMode;
return this;
}
/**
* @param issuerMode Indicates whether Okta uses the original Okta org domain URL, or a custom domain URL. It can be `ORG_URL` or `CUSTOM_URL`. Default: `ORG_URL`
*
* @return builder
*
*/
public Builder issuerMode(String issuerMode) {
return issuerMode(Output.of(issuerMode));
}
/**
* @param maxClockSkew Maximum allowable clock-skew when processing messages from the IdP.
*
* @return builder
*
*/
public Builder maxClockSkew(@Nullable Output maxClockSkew) {
$.maxClockSkew = maxClockSkew;
return this;
}
/**
* @param maxClockSkew Maximum allowable clock-skew when processing messages from the IdP.
*
* @return builder
*
*/
public Builder maxClockSkew(Integer maxClockSkew) {
return maxClockSkew(Output.of(maxClockSkew));
}
/**
* @param name Name of the IdP
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Name of the IdP
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param profileMaster Determines if the IdP should act as a source of truth for user profile attributes.
*
* @return builder
*
*/
public Builder profileMaster(@Nullable Output profileMaster) {
$.profileMaster = profileMaster;
return this;
}
/**
* @param profileMaster Determines if the IdP should act as a source of truth for user profile attributes.
*
* @return builder
*
*/
public Builder profileMaster(Boolean profileMaster) {
return profileMaster(Output.of(profileMaster));
}
/**
* @param protocolType The type of protocol to use. It can be `OIDC` or `OAUTH2`. Default: `OAUTH2`
*
* @return builder
*
*/
public Builder protocolType(@Nullable Output protocolType) {
$.protocolType = protocolType;
return this;
}
/**
* @param protocolType The type of protocol to use. It can be `OIDC` or `OAUTH2`. Default: `OAUTH2`
*
* @return builder
*
*/
public Builder protocolType(String protocolType) {
return protocolType(Output.of(protocolType));
}
/**
* @param provisioningAction Provisioning action for an IdP user during authentication. Default: `AUTO`
*
* @return builder
*
*/
public Builder provisioningAction(@Nullable Output provisioningAction) {
$.provisioningAction = provisioningAction;
return this;
}
/**
* @param provisioningAction Provisioning action for an IdP user during authentication. Default: `AUTO`
*
* @return builder
*
*/
public Builder provisioningAction(String provisioningAction) {
return provisioningAction(Output.of(provisioningAction));
}
/**
* @param scopes The scopes of the IdP.
*
* @return builder
*
*/
public Builder scopes(Output> scopes) {
$.scopes = scopes;
return this;
}
/**
* @param scopes The scopes of the IdP.
*
* @return builder
*
*/
public Builder scopes(List scopes) {
return scopes(Output.of(scopes));
}
/**
* @param scopes The scopes of the IdP.
*
* @return builder
*
*/
public Builder scopes(String... scopes) {
return scopes(List.of(scopes));
}
/**
* @param status Default to `ACTIVE`
*
* @return builder
*
*/
public Builder status(@Nullable Output status) {
$.status = status;
return this;
}
/**
* @param status Default to `ACTIVE`
*
* @return builder
*
*/
public Builder status(String status) {
return status(Output.of(status));
}
/**
* @param subjectMatchAttribute Okta user profile attribute for matching transformed IdP username. Only for matchType `CUSTOM_ATTRIBUTE`.
*
* @return builder
*
*/
public Builder subjectMatchAttribute(@Nullable Output subjectMatchAttribute) {
$.subjectMatchAttribute = subjectMatchAttribute;
return this;
}
/**
* @param subjectMatchAttribute Okta user profile attribute for matching transformed IdP username. Only for matchType `CUSTOM_ATTRIBUTE`.
*
* @return builder
*
*/
public Builder subjectMatchAttribute(String subjectMatchAttribute) {
return subjectMatchAttribute(Output.of(subjectMatchAttribute));
}
/**
* @param subjectMatchType Determines the Okta user profile attribute match conditions for account linking and authentication of the transformed IdP username. By default, it is set to `USERNAME`. It can be set to `USERNAME`, `EMAIL`, `USERNAME_OR_EMAIL` or `CUSTOM_ATTRIBUTE`.
*
* @return builder
*
*/
public Builder subjectMatchType(@Nullable Output subjectMatchType) {
$.subjectMatchType = subjectMatchType;
return this;
}
/**
* @param subjectMatchType Determines the Okta user profile attribute match conditions for account linking and authentication of the transformed IdP username. By default, it is set to `USERNAME`. It can be set to `USERNAME`, `EMAIL`, `USERNAME_OR_EMAIL` or `CUSTOM_ATTRIBUTE`.
*
* @return builder
*
*/
public Builder subjectMatchType(String subjectMatchType) {
return subjectMatchType(Output.of(subjectMatchType));
}
/**
* @param suspendedAction Action for a previously suspended IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
* @return builder
*
*/
public Builder suspendedAction(@Nullable Output suspendedAction) {
$.suspendedAction = suspendedAction;
return this;
}
/**
* @param suspendedAction Action for a previously suspended IdP user during authentication. Can be `NONE` or `REACTIVATE`. Default: `NONE`
*
* @return builder
*
*/
public Builder suspendedAction(String suspendedAction) {
return suspendedAction(Output.of(suspendedAction));
}
/**
* @param type Identity Provider Types: https://developer.okta.com/docs/reference/api/idps/#identity-provider-type
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type Identity Provider Types: https://developer.okta.com/docs/reference/api/idps/#identity-provider-type
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param usernameTemplate Okta EL Expression to generate or transform a unique username for the IdP user. Default: `idpuser.email`
*
* @return builder
*
*/
public Builder usernameTemplate(@Nullable Output usernameTemplate) {
$.usernameTemplate = usernameTemplate;
return this;
}
/**
* @param usernameTemplate Okta EL Expression to generate or transform a unique username for the IdP user. Default: `idpuser.email`
*
* @return builder
*
*/
public Builder usernameTemplate(String usernameTemplate) {
return usernameTemplate(Output.of(usernameTemplate));
}
public SocialArgs build() {
if ($.scopes == null) {
throw new MissingRequiredPropertyException("SocialArgs", "scopes");
}
if ($.type == null) {
throw new MissingRequiredPropertyException("SocialArgs", "type");
}
return $;
}
}
}