
com.pulumi.azurenative.agfoodplatform.inputs.OAuthClientCredentialsArgs 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.agfoodplatform.inputs;
import com.pulumi.azurenative.agfoodplatform.inputs.KeyVaultPropertiesArgs;
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;
/**
* OAuthClientCredentials for clientId clientSecret auth.
*
*/
public final class OAuthClientCredentialsArgs extends com.pulumi.resources.ResourceArgs {
public static final OAuthClientCredentialsArgs Empty = new OAuthClientCredentialsArgs();
/**
* ClientId associated with the provider.
*
*/
@Import(name="clientId", required=true)
private Output clientId;
/**
* @return ClientId associated with the provider.
*
*/
public Output clientId() {
return this.clientId;
}
/**
* Properties of the key vault.
*
*/
@Import(name="clientSecret", required=true)
private Output clientSecret;
/**
* @return Properties of the key vault.
*
*/
public Output clientSecret() {
return this.clientSecret;
}
/**
* Enum for different types of AuthCredentials supported.
* Expected value is 'OAuthClientCredentials'.
*
*/
@Import(name="kind", required=true)
private Output kind;
/**
* @return Enum for different types of AuthCredentials supported.
* Expected value is 'OAuthClientCredentials'.
*
*/
public Output kind() {
return this.kind;
}
private OAuthClientCredentialsArgs() {}
private OAuthClientCredentialsArgs(OAuthClientCredentialsArgs $) {
this.clientId = $.clientId;
this.clientSecret = $.clientSecret;
this.kind = $.kind;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OAuthClientCredentialsArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private OAuthClientCredentialsArgs $;
public Builder() {
$ = new OAuthClientCredentialsArgs();
}
public Builder(OAuthClientCredentialsArgs defaults) {
$ = new OAuthClientCredentialsArgs(Objects.requireNonNull(defaults));
}
/**
* @param clientId ClientId associated with the provider.
*
* @return builder
*
*/
public Builder clientId(Output clientId) {
$.clientId = clientId;
return this;
}
/**
* @param clientId ClientId associated with the provider.
*
* @return builder
*
*/
public Builder clientId(String clientId) {
return clientId(Output.of(clientId));
}
/**
* @param clientSecret Properties of the key vault.
*
* @return builder
*
*/
public Builder clientSecret(Output clientSecret) {
$.clientSecret = clientSecret;
return this;
}
/**
* @param clientSecret Properties of the key vault.
*
* @return builder
*
*/
public Builder clientSecret(KeyVaultPropertiesArgs clientSecret) {
return clientSecret(Output.of(clientSecret));
}
/**
* @param kind Enum for different types of AuthCredentials supported.
* Expected value is 'OAuthClientCredentials'.
*
* @return builder
*
*/
public Builder kind(Output kind) {
$.kind = kind;
return this;
}
/**
* @param kind Enum for different types of AuthCredentials supported.
* Expected value is 'OAuthClientCredentials'.
*
* @return builder
*
*/
public Builder kind(String kind) {
return kind(Output.of(kind));
}
public OAuthClientCredentialsArgs build() {
if ($.clientId == null) {
throw new MissingRequiredPropertyException("OAuthClientCredentialsArgs", "clientId");
}
if ($.clientSecret == null) {
throw new MissingRequiredPropertyException("OAuthClientCredentialsArgs", "clientSecret");
}
$.kind = Codegen.stringProp("kind").output().arg($.kind).require();
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy