com.pulumi.azure.network.outputs.SubnetServiceEndpointStoragePolicyDefinition 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.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SubnetServiceEndpointStoragePolicyDefinition {
/**
* @return The description of this Subnet Service Endpoint Storage Policy Definition.
*
*/
private @Nullable String description;
/**
* @return The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
*
*/
private String name;
/**
* @return The type of service resources. Valid values are `Microsoft.Storage` or `Global`. When the `service_resources` property contains resource IDs, this property must be `Microsoft.Storage`. When the `service_resources` property contains Aliases, this property must be `Global`. Defaults to `Microsoft.Storage`.
*
*/
private @Nullable String service;
/**
* @return Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.
*
* > **NOTE** The `service_resources` property must contain either Aliases or Resource IDs, but not both.
*
*/
private List serviceResources;
private SubnetServiceEndpointStoragePolicyDefinition() {}
/**
* @return The description of this Subnet Service Endpoint Storage Policy Definition.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The name which should be used for this Subnet Service Endpoint Storage Policy Definition.
*
*/
public String name() {
return this.name;
}
/**
* @return The type of service resources. Valid values are `Microsoft.Storage` or `Global`. When the `service_resources` property contains resource IDs, this property must be `Microsoft.Storage`. When the `service_resources` property contains Aliases, this property must be `Global`. Defaults to `Microsoft.Storage`.
*
*/
public Optional service() {
return Optional.ofNullable(this.service);
}
/**
* @return Specifies a list of resources or aliases that this Subnet Service Endpoint Storage Policy Definition applies to.
*
* > **NOTE** The `service_resources` property must contain either Aliases or Resource IDs, but not both.
*
*/
public List serviceResources() {
return this.serviceResources;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SubnetServiceEndpointStoragePolicyDefinition defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private String name;
private @Nullable String service;
private List serviceResources;
public Builder() {}
public Builder(SubnetServiceEndpointStoragePolicyDefinition defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.name = defaults.name;
this.service = defaults.service;
this.serviceResources = defaults.serviceResources;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("SubnetServiceEndpointStoragePolicyDefinition", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder service(@Nullable String service) {
this.service = service;
return this;
}
@CustomType.Setter
public Builder serviceResources(List serviceResources) {
if (serviceResources == null) {
throw new MissingRequiredPropertyException("SubnetServiceEndpointStoragePolicyDefinition", "serviceResources");
}
this.serviceResources = serviceResources;
return this;
}
public Builder serviceResources(String... serviceResources) {
return serviceResources(List.of(serviceResources));
}
public SubnetServiceEndpointStoragePolicyDefinition build() {
final var _resultValue = new SubnetServiceEndpointStoragePolicyDefinition();
_resultValue.description = description;
_resultValue.name = name;
_resultValue.service = service;
_resultValue.serviceResources = serviceResources;
return _resultValue;
}
}
}