com.pulumi.azure.appservice.inputs.FunctionAppSlotAuthSettingsTwitterArgs 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.azure.appservice.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class FunctionAppSlotAuthSettingsTwitterArgs extends com.pulumi.resources.ResourceArgs {
public static final FunctionAppSlotAuthSettingsTwitterArgs Empty = new FunctionAppSlotAuthSettingsTwitterArgs();
/**
* The OAuth 1.0a consumer key of the Twitter application used for sign-in.
*
*/
@Import(name="consumerKey", required=true)
private Output consumerKey;
/**
* @return The OAuth 1.0a consumer key of the Twitter application used for sign-in.
*
*/
public Output consumerKey() {
return this.consumerKey;
}
/**
* The OAuth 1.0a consumer secret of the Twitter application used for sign-in.
*
*/
@Import(name="consumerSecret", required=true)
private Output consumerSecret;
/**
* @return The OAuth 1.0a consumer secret of the Twitter application used for sign-in.
*
*/
public Output consumerSecret() {
return this.consumerSecret;
}
private FunctionAppSlotAuthSettingsTwitterArgs() {}
private FunctionAppSlotAuthSettingsTwitterArgs(FunctionAppSlotAuthSettingsTwitterArgs $) {
this.consumerKey = $.consumerKey;
this.consumerSecret = $.consumerSecret;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionAppSlotAuthSettingsTwitterArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private FunctionAppSlotAuthSettingsTwitterArgs $;
public Builder() {
$ = new FunctionAppSlotAuthSettingsTwitterArgs();
}
public Builder(FunctionAppSlotAuthSettingsTwitterArgs defaults) {
$ = new FunctionAppSlotAuthSettingsTwitterArgs(Objects.requireNonNull(defaults));
}
/**
* @param consumerKey The OAuth 1.0a consumer key of the Twitter application used for sign-in.
*
* @return builder
*
*/
public Builder consumerKey(Output consumerKey) {
$.consumerKey = consumerKey;
return this;
}
/**
* @param consumerKey The OAuth 1.0a consumer key of the Twitter application used for sign-in.
*
* @return builder
*
*/
public Builder consumerKey(String consumerKey) {
return consumerKey(Output.of(consumerKey));
}
/**
* @param consumerSecret The OAuth 1.0a consumer secret of the Twitter application used for sign-in.
*
* @return builder
*
*/
public Builder consumerSecret(Output consumerSecret) {
$.consumerSecret = consumerSecret;
return this;
}
/**
* @param consumerSecret The OAuth 1.0a consumer secret of the Twitter application used for sign-in.
*
* @return builder
*
*/
public Builder consumerSecret(String consumerSecret) {
return consumerSecret(Output.of(consumerSecret));
}
public FunctionAppSlotAuthSettingsTwitterArgs build() {
if ($.consumerKey == null) {
throw new MissingRequiredPropertyException("FunctionAppSlotAuthSettingsTwitterArgs", "consumerKey");
}
if ($.consumerSecret == null) {
throw new MissingRequiredPropertyException("FunctionAppSlotAuthSettingsTwitterArgs", "consumerSecret");
}
return $;
}
}
}