com.pulumi.azurenative.network.outputs.ServiceEndpointPolicyResponse 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.network.outputs;
import com.pulumi.azurenative.network.outputs.ServiceEndpointPolicyDefinitionResponse;
import com.pulumi.azurenative.network.outputs.SubnetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceEndpointPolicyResponse {
/**
* @return A collection of contextual service endpoint policy.
*
*/
private @Nullable List contextualServiceEndpointPolicies;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return Kind of service endpoint policy. This is metadata used for the Azure portal experience.
*
*/
private String kind;
/**
* @return Resource location.
*
*/
private @Nullable String location;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The provisioning state of the service endpoint policy resource.
*
*/
private String provisioningState;
/**
* @return The resource GUID property of the service endpoint policy resource.
*
*/
private String resourceGuid;
/**
* @return The alias indicating if the policy belongs to a service
*
*/
private @Nullable String serviceAlias;
/**
* @return A collection of service endpoint policy definitions of the service endpoint policy.
*
*/
private @Nullable List serviceEndpointPolicyDefinitions;
/**
* @return A collection of references to subnets.
*
*/
private List subnets;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Resource type.
*
*/
private String type;
private ServiceEndpointPolicyResponse() {}
/**
* @return A collection of contextual service endpoint policy.
*
*/
public List contextualServiceEndpointPolicies() {
return this.contextualServiceEndpointPolicies == null ? List.of() : this.contextualServiceEndpointPolicies;
}
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Resource ID.
*
*/
public Optional id() {
return Optional.ofNullable(this.id);
}
/**
* @return Kind of service endpoint policy. This is metadata used for the Azure portal experience.
*
*/
public String kind() {
return this.kind;
}
/**
* @return Resource location.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state of the service endpoint policy resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The resource GUID property of the service endpoint policy resource.
*
*/
public String resourceGuid() {
return this.resourceGuid;
}
/**
* @return The alias indicating if the policy belongs to a service
*
*/
public Optional serviceAlias() {
return Optional.ofNullable(this.serviceAlias);
}
/**
* @return A collection of service endpoint policy definitions of the service endpoint policy.
*
*/
public List serviceEndpointPolicyDefinitions() {
return this.serviceEndpointPolicyDefinitions == null ? List.of() : this.serviceEndpointPolicyDefinitions;
}
/**
* @return A collection of references to subnets.
*
*/
public List subnets() {
return this.subnets;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceEndpointPolicyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List contextualServiceEndpointPolicies;
private String etag;
private @Nullable String id;
private String kind;
private @Nullable String location;
private String name;
private String provisioningState;
private String resourceGuid;
private @Nullable String serviceAlias;
private @Nullable List serviceEndpointPolicyDefinitions;
private List subnets;
private @Nullable Map tags;
private String type;
public Builder() {}
public Builder(ServiceEndpointPolicyResponse defaults) {
Objects.requireNonNull(defaults);
this.contextualServiceEndpointPolicies = defaults.contextualServiceEndpointPolicies;
this.etag = defaults.etag;
this.id = defaults.id;
this.kind = defaults.kind;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.resourceGuid = defaults.resourceGuid;
this.serviceAlias = defaults.serviceAlias;
this.serviceEndpointPolicyDefinitions = defaults.serviceEndpointPolicyDefinitions;
this.subnets = defaults.subnets;
this.tags = defaults.tags;
this.type = defaults.type;
}
@CustomType.Setter
public Builder contextualServiceEndpointPolicies(@Nullable List contextualServiceEndpointPolicies) {
this.contextualServiceEndpointPolicies = contextualServiceEndpointPolicies;
return this;
}
public Builder contextualServiceEndpointPolicies(String... contextualServiceEndpointPolicies) {
return contextualServiceEndpointPolicies(List.of(contextualServiceEndpointPolicies));
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder resourceGuid(String resourceGuid) {
if (resourceGuid == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "resourceGuid");
}
this.resourceGuid = resourceGuid;
return this;
}
@CustomType.Setter
public Builder serviceAlias(@Nullable String serviceAlias) {
this.serviceAlias = serviceAlias;
return this;
}
@CustomType.Setter
public Builder serviceEndpointPolicyDefinitions(@Nullable List serviceEndpointPolicyDefinitions) {
this.serviceEndpointPolicyDefinitions = serviceEndpointPolicyDefinitions;
return this;
}
public Builder serviceEndpointPolicyDefinitions(ServiceEndpointPolicyDefinitionResponse... serviceEndpointPolicyDefinitions) {
return serviceEndpointPolicyDefinitions(List.of(serviceEndpointPolicyDefinitions));
}
@CustomType.Setter
public Builder subnets(List subnets) {
if (subnets == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "subnets");
}
this.subnets = subnets;
return this;
}
public Builder subnets(SubnetResponse... subnets) {
return subnets(List.of(subnets));
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("ServiceEndpointPolicyResponse", "type");
}
this.type = type;
return this;
}
public ServiceEndpointPolicyResponse build() {
final var _resultValue = new ServiceEndpointPolicyResponse();
_resultValue.contextualServiceEndpointPolicies = contextualServiceEndpointPolicies;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.resourceGuid = resourceGuid;
_resultValue.serviceAlias = serviceAlias;
_resultValue.serviceEndpointPolicyDefinitions = serviceEndpointPolicyDefinitions;
_resultValue.subnets = subnets;
_resultValue.tags = tags;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy