com.pulumi.azurenative.web.outputs.ConnectionErrorResponse 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.
The newest version!
// *** 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.web.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConnectionErrorResponse {
/**
* @return Code of the status
*
*/
private @Nullable String code;
/**
* @return Resource ETag
*
*/
private @Nullable String etag;
/**
* @return Resource id
*
*/
private String id;
/**
* @return Resource location
*
*/
private @Nullable String location;
/**
* @return Description of the status
*
*/
private @Nullable String message;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Resource tags
*
*/
private @Nullable Map tags;
/**
* @return Resource type
*
*/
private String type;
private ConnectionErrorResponse() {}
/**
* @return Code of the status
*
*/
public Optional code() {
return Optional.ofNullable(this.code);
}
/**
* @return Resource ETag
*
*/
public Optional etag() {
return Optional.ofNullable(this.etag);
}
/**
* @return Resource id
*
*/
public String id() {
return this.id;
}
/**
* @return Resource location
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Description of the status
*
*/
public Optional message() {
return Optional.ofNullable(this.message);
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @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(ConnectionErrorResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String code;
private @Nullable String etag;
private String id;
private @Nullable String location;
private @Nullable String message;
private String name;
private @Nullable Map tags;
private String type;
public Builder() {}
public Builder(ConnectionErrorResponse defaults) {
Objects.requireNonNull(defaults);
this.code = defaults.code;
this.etag = defaults.etag;
this.id = defaults.id;
this.location = defaults.location;
this.message = defaults.message;
this.name = defaults.name;
this.tags = defaults.tags;
this.type = defaults.type;
}
@CustomType.Setter
public Builder code(@Nullable String code) {
this.code = code;
return this;
}
@CustomType.Setter
public Builder etag(@Nullable String etag) {
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("ConnectionErrorResponse", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder message(@Nullable String message) {
this.message = message;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ConnectionErrorResponse", "name");
}
this.name = name;
return this;
}
@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("ConnectionErrorResponse", "type");
}
this.type = type;
return this;
}
public ConnectionErrorResponse build() {
final var _resultValue = new ConnectionErrorResponse();
_resultValue.code = code;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.message = message;
_resultValue.name = name;
_resultValue.tags = tags;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy