com.pulumi.azure.keyvault.outputs.KeyVaultContact 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.keyvault.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class KeyVaultContact {
/**
* @return E-mail address of the contact.
*
*/
private String email;
/**
* @return Name of the contact.
*
*/
private @Nullable String name;
/**
* @return Phone number of the contact.
*
*/
private @Nullable String phone;
private KeyVaultContact() {}
/**
* @return E-mail address of the contact.
*
*/
public String email() {
return this.email;
}
/**
* @return Name of the contact.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Phone number of the contact.
*
*/
public Optional phone() {
return Optional.ofNullable(this.phone);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(KeyVaultContact defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String email;
private @Nullable String name;
private @Nullable String phone;
public Builder() {}
public Builder(KeyVaultContact defaults) {
Objects.requireNonNull(defaults);
this.email = defaults.email;
this.name = defaults.name;
this.phone = defaults.phone;
}
@CustomType.Setter
public Builder email(String email) {
if (email == null) {
throw new MissingRequiredPropertyException("KeyVaultContact", "email");
}
this.email = email;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder phone(@Nullable String phone) {
this.phone = phone;
return this;
}
public KeyVaultContact build() {
final var _resultValue = new KeyVaultContact();
_resultValue.email = email;
_resultValue.name = name;
_resultValue.phone = phone;
return _resultValue;
}
}
}