com.pulumi.azurenative.videoanalyzer.inputs.RsaTokenKeyArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.videoanalyzer.inputs;
import com.pulumi.azurenative.videoanalyzer.enums.AccessPolicyRsaAlgo;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Required validation properties for tokens generated with RSA algorithm.
*
*/
public final class RsaTokenKeyArgs extends com.pulumi.resources.ResourceArgs {
public static final RsaTokenKeyArgs Empty = new RsaTokenKeyArgs();
/**
* RSA algorithm to be used: RS256, RS384 or RS512.
*
*/
@Import(name="alg", required=true)
private Output> alg;
/**
* @return RSA algorithm to be used: RS256, RS384 or RS512.
*
*/
public Output> alg() {
return this.alg;
}
/**
* RSA public key exponent.
*
*/
@Import(name="e", required=true)
private Output e;
/**
* @return RSA public key exponent.
*
*/
public Output e() {
return this.e;
}
/**
* JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
*
*/
@Import(name="kid", required=true)
private Output kid;
/**
* @return JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
*
*/
public Output kid() {
return this.kid;
}
/**
* RSA public key modulus.
*
*/
@Import(name="n", required=true)
private Output n;
/**
* @return RSA public key modulus.
*
*/
public Output n() {
return this.n;
}
/**
* The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.RsaTokenKey'.
*
*/
@Import(name="type", required=true)
private Output type;
/**
* @return The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.RsaTokenKey'.
*
*/
public Output type() {
return this.type;
}
private RsaTokenKeyArgs() {}
private RsaTokenKeyArgs(RsaTokenKeyArgs $) {
this.alg = $.alg;
this.e = $.e;
this.kid = $.kid;
this.n = $.n;
this.type = $.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RsaTokenKeyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RsaTokenKeyArgs $;
public Builder() {
$ = new RsaTokenKeyArgs();
}
public Builder(RsaTokenKeyArgs defaults) {
$ = new RsaTokenKeyArgs(Objects.requireNonNull(defaults));
}
/**
* @param alg RSA algorithm to be used: RS256, RS384 or RS512.
*
* @return builder
*
*/
public Builder alg(Output> alg) {
$.alg = alg;
return this;
}
/**
* @param alg RSA algorithm to be used: RS256, RS384 or RS512.
*
* @return builder
*
*/
public Builder alg(Either alg) {
return alg(Output.of(alg));
}
/**
* @param alg RSA algorithm to be used: RS256, RS384 or RS512.
*
* @return builder
*
*/
public Builder alg(String alg) {
return alg(Either.ofLeft(alg));
}
/**
* @param alg RSA algorithm to be used: RS256, RS384 or RS512.
*
* @return builder
*
*/
public Builder alg(AccessPolicyRsaAlgo alg) {
return alg(Either.ofRight(alg));
}
/**
* @param e RSA public key exponent.
*
* @return builder
*
*/
public Builder e(Output e) {
$.e = e;
return this;
}
/**
* @param e RSA public key exponent.
*
* @return builder
*
*/
public Builder e(String e) {
return e(Output.of(e));
}
/**
* @param kid JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
*
* @return builder
*
*/
public Builder kid(Output kid) {
$.kid = kid;
return this;
}
/**
* @param kid JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
*
* @return builder
*
*/
public Builder kid(String kid) {
return kid(Output.of(kid));
}
/**
* @param n RSA public key modulus.
*
* @return builder
*
*/
public Builder n(Output n) {
$.n = n;
return this;
}
/**
* @param n RSA public key modulus.
*
* @return builder
*
*/
public Builder n(String n) {
return n(Output.of(n));
}
/**
* @param type The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.RsaTokenKey'.
*
* @return builder
*
*/
public Builder type(Output type) {
$.type = type;
return this;
}
/**
* @param type The discriminator for derived types.
* Expected value is '#Microsoft.VideoAnalyzer.RsaTokenKey'.
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
public RsaTokenKeyArgs build() {
if ($.alg == null) {
throw new MissingRequiredPropertyException("RsaTokenKeyArgs", "alg");
}
if ($.e == null) {
throw new MissingRequiredPropertyException("RsaTokenKeyArgs", "e");
}
if ($.kid == null) {
throw new MissingRequiredPropertyException("RsaTokenKeyArgs", "kid");
}
if ($.n == null) {
throw new MissingRequiredPropertyException("RsaTokenKeyArgs", "n");
}
$.type = Codegen.stringProp("type").output().arg($.type).require();
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy