
com.pulumi.azurenative.logic.outputs.OpenAuthenticationAccessPolicyResponse 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.azurenative.logic.outputs;
import com.pulumi.azurenative.logic.outputs.OpenAuthenticationPolicyClaimResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class OpenAuthenticationAccessPolicyResponse {
/**
* @return The access policy claims.
*
*/
private @Nullable List claims;
/**
* @return Type of provider for OAuth.
*
*/
private @Nullable String type;
private OpenAuthenticationAccessPolicyResponse() {}
/**
* @return The access policy claims.
*
*/
public List claims() {
return this.claims == null ? List.of() : this.claims;
}
/**
* @return Type of provider for OAuth.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OpenAuthenticationAccessPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List claims;
private @Nullable String type;
public Builder() {}
public Builder(OpenAuthenticationAccessPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.claims = defaults.claims;
this.type = defaults.type;
}
@CustomType.Setter
public Builder claims(@Nullable List claims) {
this.claims = claims;
return this;
}
public Builder claims(OpenAuthenticationPolicyClaimResponse... claims) {
return claims(List.of(claims));
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public OpenAuthenticationAccessPolicyResponse build() {
final var _resultValue = new OpenAuthenticationAccessPolicyResponse();
_resultValue.claims = claims;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy