com.pulumi.azurenative.network.outputs.DelegationResponse 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.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 DelegationResponse {
/**
* @return The actions permitted to the service upon delegation.
*
*/
private List actions;
/**
* @return A unique read-only string that changes whenever the resource is updated.
*
*/
private String etag;
/**
* @return Resource ID.
*
*/
private @Nullable String id;
/**
* @return The name of the resource that is unique within a subnet. This name can be used to access the resource.
*
*/
private @Nullable String name;
/**
* @return The provisioning state of the service delegation resource.
*
*/
private String provisioningState;
/**
* @return The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers).
*
*/
private @Nullable String serviceName;
/**
* @return Resource type.
*
*/
private @Nullable String type;
private DelegationResponse() {}
/**
* @return The actions permitted to the service upon delegation.
*
*/
public List actions() {
return this.actions;
}
/**
* @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 The name of the resource that is unique within a subnet. This name can be used to access the resource.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return The provisioning state of the service delegation resource.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The name of the service to whom the subnet should be delegated (e.g. Microsoft.Sql/servers).
*
*/
public Optional serviceName() {
return Optional.ofNullable(this.serviceName);
}
/**
* @return Resource type.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DelegationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List actions;
private String etag;
private @Nullable String id;
private @Nullable String name;
private String provisioningState;
private @Nullable String serviceName;
private @Nullable String type;
public Builder() {}
public Builder(DelegationResponse defaults) {
Objects.requireNonNull(defaults);
this.actions = defaults.actions;
this.etag = defaults.etag;
this.id = defaults.id;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.serviceName = defaults.serviceName;
this.type = defaults.type;
}
@CustomType.Setter
public Builder actions(List actions) {
if (actions == null) {
throw new MissingRequiredPropertyException("DelegationResponse", "actions");
}
this.actions = actions;
return this;
}
public Builder actions(String... actions) {
return actions(List.of(actions));
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("DelegationResponse", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(@Nullable String id) {
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("DelegationResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder serviceName(@Nullable String serviceName) {
this.serviceName = serviceName;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
public DelegationResponse build() {
final var _resultValue = new DelegationResponse();
_resultValue.actions = actions;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.serviceName = serviceName;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy