com.pulumi.aws.cognito.outputs.UserPoolAccountRecoverySettingRecoveryMechanism Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.aws.cognito.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class UserPoolAccountRecoverySettingRecoveryMechanism {
/**
* @return Recovery method for a user. Can be of the following: `verified_email`, `verified_phone_number`, and `admin_only`.
*
*/
private String name;
/**
* @return Positive integer specifying priority of a method with 1 being the highest priority.
*
*/
private Integer priority;
private UserPoolAccountRecoverySettingRecoveryMechanism() {}
/**
* @return Recovery method for a user. Can be of the following: `verified_email`, `verified_phone_number`, and `admin_only`.
*
*/
public String name() {
return this.name;
}
/**
* @return Positive integer specifying priority of a method with 1 being the highest priority.
*
*/
public Integer priority() {
return this.priority;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UserPoolAccountRecoverySettingRecoveryMechanism defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private Integer priority;
public Builder() {}
public Builder(UserPoolAccountRecoverySettingRecoveryMechanism defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.priority = defaults.priority;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("UserPoolAccountRecoverySettingRecoveryMechanism", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder priority(Integer priority) {
if (priority == null) {
throw new MissingRequiredPropertyException("UserPoolAccountRecoverySettingRecoveryMechanism", "priority");
}
this.priority = priority;
return this;
}
public UserPoolAccountRecoverySettingRecoveryMechanism build() {
final var _resultValue = new UserPoolAccountRecoverySettingRecoveryMechanism();
_resultValue.name = name;
_resultValue.priority = priority;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy