com.pulumi.azure.apimanagement.IdentityProviderTwitterArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.apimanagement;
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 IdentityProviderTwitterArgs extends com.pulumi.resources.ResourceArgs {
public static final IdentityProviderTwitterArgs Empty = new IdentityProviderTwitterArgs();
/**
* App Consumer API key for Twitter.
*
*/
@Import(name="apiKey", required=true)
private Output apiKey;
/**
* @return App Consumer API key for Twitter.
*
*/
public Output apiKey() {
return this.apiKey;
}
/**
* The Name of the API Management Service where this Twitter Identity Provider should be created. Changing this forces a new resource to be created.
*
*/
@Import(name="apiManagementName", required=true)
private Output apiManagementName;
/**
* @return The Name of the API Management Service where this Twitter Identity Provider should be created. Changing this forces a new resource to be created.
*
*/
public Output apiManagementName() {
return this.apiManagementName;
}
/**
* App Consumer API secret key for Twitter.
*
*/
@Import(name="apiSecretKey", required=true)
private Output apiSecretKey;
/**
* @return App Consumer API secret key for Twitter.
*
*/
public Output apiSecretKey() {
return this.apiSecretKey;
}
/**
* The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
*
*/
@Import(name="resourceGroupName", required=true)
private Output resourceGroupName;
/**
* @return The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
private IdentityProviderTwitterArgs() {}
private IdentityProviderTwitterArgs(IdentityProviderTwitterArgs $) {
this.apiKey = $.apiKey;
this.apiManagementName = $.apiManagementName;
this.apiSecretKey = $.apiSecretKey;
this.resourceGroupName = $.resourceGroupName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(IdentityProviderTwitterArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private IdentityProviderTwitterArgs $;
public Builder() {
$ = new IdentityProviderTwitterArgs();
}
public Builder(IdentityProviderTwitterArgs defaults) {
$ = new IdentityProviderTwitterArgs(Objects.requireNonNull(defaults));
}
/**
* @param apiKey App Consumer API key for Twitter.
*
* @return builder
*
*/
public Builder apiKey(Output apiKey) {
$.apiKey = apiKey;
return this;
}
/**
* @param apiKey App Consumer API key for Twitter.
*
* @return builder
*
*/
public Builder apiKey(String apiKey) {
return apiKey(Output.of(apiKey));
}
/**
* @param apiManagementName The Name of the API Management Service where this Twitter Identity Provider should be created. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder apiManagementName(Output apiManagementName) {
$.apiManagementName = apiManagementName;
return this;
}
/**
* @param apiManagementName The Name of the API Management Service where this Twitter Identity Provider should be created. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder apiManagementName(String apiManagementName) {
return apiManagementName(Output.of(apiManagementName));
}
/**
* @param apiSecretKey App Consumer API secret key for Twitter.
*
* @return builder
*
*/
public Builder apiSecretKey(Output apiSecretKey) {
$.apiSecretKey = apiSecretKey;
return this;
}
/**
* @param apiSecretKey App Consumer API secret key for Twitter.
*
* @return builder
*
*/
public Builder apiSecretKey(String apiSecretKey) {
return apiSecretKey(Output.of(apiSecretKey));
}
/**
* @param resourceGroupName The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGroupName(Output resourceGroupName) {
$.resourceGroupName = resourceGroupName;
return this;
}
/**
* @param resourceGroupName The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder resourceGroupName(String resourceGroupName) {
return resourceGroupName(Output.of(resourceGroupName));
}
public IdentityProviderTwitterArgs build() {
if ($.apiKey == null) {
throw new MissingRequiredPropertyException("IdentityProviderTwitterArgs", "apiKey");
}
if ($.apiManagementName == null) {
throw new MissingRequiredPropertyException("IdentityProviderTwitterArgs", "apiManagementName");
}
if ($.apiSecretKey == null) {
throw new MissingRequiredPropertyException("IdentityProviderTwitterArgs", "apiSecretKey");
}
if ($.resourceGroupName == null) {
throw new MissingRequiredPropertyException("IdentityProviderTwitterArgs", "resourceGroupName");
}
return $;
}
}
}