
com.pulumi.azurenative.automation.outputs.GetConnectionResult Maven / Gradle / Ivy
// *** 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.automation.outputs;
import com.pulumi.azurenative.automation.outputs.ConnectionTypeAssociationPropertyResponse;
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 GetConnectionResult {
/**
* @return Gets or sets the connectionType of the connection.
*
*/
private @Nullable ConnectionTypeAssociationPropertyResponse connectionType;
/**
* @return Gets the creation time.
*
*/
private String creationTime;
/**
* @return Gets or sets the description.
*
*/
private @Nullable String description;
/**
* @return Gets the field definition values of the connection.
*
*/
private Map fieldDefinitionValues;
/**
* @return Fully qualified resource Id for the resource
*
*/
private String id;
/**
* @return Gets the last modified time.
*
*/
private String lastModifiedTime;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The type of the resource.
*
*/
private String type;
private GetConnectionResult() {}
/**
* @return Gets or sets the connectionType of the connection.
*
*/
public Optional connectionType() {
return Optional.ofNullable(this.connectionType);
}
/**
* @return Gets the creation time.
*
*/
public String creationTime() {
return this.creationTime;
}
/**
* @return Gets or sets the description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Gets the field definition values of the connection.
*
*/
public Map fieldDefinitionValues() {
return this.fieldDefinitionValues;
}
/**
* @return Fully qualified resource Id for the resource
*
*/
public String id() {
return this.id;
}
/**
* @return Gets the last modified time.
*
*/
public String lastModifiedTime() {
return this.lastModifiedTime;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetConnectionResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ConnectionTypeAssociationPropertyResponse connectionType;
private String creationTime;
private @Nullable String description;
private Map fieldDefinitionValues;
private String id;
private String lastModifiedTime;
private String name;
private String type;
public Builder() {}
public Builder(GetConnectionResult defaults) {
Objects.requireNonNull(defaults);
this.connectionType = defaults.connectionType;
this.creationTime = defaults.creationTime;
this.description = defaults.description;
this.fieldDefinitionValues = defaults.fieldDefinitionValues;
this.id = defaults.id;
this.lastModifiedTime = defaults.lastModifiedTime;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder connectionType(@Nullable ConnectionTypeAssociationPropertyResponse connectionType) {
this.connectionType = connectionType;
return this;
}
@CustomType.Setter
public Builder creationTime(String creationTime) {
if (creationTime == null) {
throw new MissingRequiredPropertyException("GetConnectionResult", "creationTime");
}
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder fieldDefinitionValues(Map fieldDefinitionValues) {
if (fieldDefinitionValues == null) {
throw new MissingRequiredPropertyException("GetConnectionResult", "fieldDefinitionValues");
}
this.fieldDefinitionValues = fieldDefinitionValues;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetConnectionResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(String lastModifiedTime) {
if (lastModifiedTime == null) {
throw new MissingRequiredPropertyException("GetConnectionResult", "lastModifiedTime");
}
this.lastModifiedTime = lastModifiedTime;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetConnectionResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetConnectionResult", "type");
}
this.type = type;
return this;
}
public GetConnectionResult build() {
final var _resultValue = new GetConnectionResult();
_resultValue.connectionType = connectionType;
_resultValue.creationTime = creationTime;
_resultValue.description = description;
_resultValue.fieldDefinitionValues = fieldDefinitionValues;
_resultValue.id = id;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy