com.pulumi.azurenative.automation.outputs.GetModuleResult 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.automation.outputs;
import com.pulumi.azurenative.automation.outputs.ContentLinkResponse;
import com.pulumi.azurenative.automation.outputs.ModuleErrorInfoResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetModuleResult {
/**
* @return Gets or sets the activity count of the module.
*
*/
private @Nullable Integer activityCount;
/**
* @return Gets or sets the contentLink of the module.
*
*/
private @Nullable ContentLinkResponse contentLink;
/**
* @return Gets or sets the creation time.
*
*/
private @Nullable String creationTime;
/**
* @return Gets or sets the description.
*
*/
private @Nullable String description;
/**
* @return Gets or sets the error info of the module.
*
*/
private @Nullable ModuleErrorInfoResponse error;
/**
* @return Gets or sets the etag of the resource.
*
*/
private @Nullable String etag;
/**
* @return Fully qualified resource Id for the resource
*
*/
private String id;
/**
* @return Gets or sets type of module, if its composite or not.
*
*/
private @Nullable Boolean isComposite;
/**
* @return Gets or sets the isGlobal flag of the module.
*
*/
private @Nullable Boolean isGlobal;
/**
* @return Gets or sets the last modified time.
*
*/
private @Nullable String lastModifiedTime;
/**
* @return The Azure Region where the resource lives
*
*/
private @Nullable String location;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Gets or sets the provisioning state of the module.
*
*/
private @Nullable String provisioningState;
/**
* @return Gets or sets the size in bytes of the module.
*
*/
private @Nullable Double sizeInBytes;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return The type of the resource.
*
*/
private String type;
/**
* @return Gets or sets the version of the module.
*
*/
private @Nullable String version;
private GetModuleResult() {}
/**
* @return Gets or sets the activity count of the module.
*
*/
public Optional activityCount() {
return Optional.ofNullable(this.activityCount);
}
/**
* @return Gets or sets the contentLink of the module.
*
*/
public Optional contentLink() {
return Optional.ofNullable(this.contentLink);
}
/**
* @return Gets or sets the creation time.
*
*/
public Optional creationTime() {
return Optional.ofNullable(this.creationTime);
}
/**
* @return Gets or sets the description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Gets or sets the error info of the module.
*
*/
public Optional error() {
return Optional.ofNullable(this.error);
}
/**
* @return Gets or sets the etag of the resource.
*
*/
public Optional etag() {
return Optional.ofNullable(this.etag);
}
/**
* @return Fully qualified resource Id for the resource
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets type of module, if its composite or not.
*
*/
public Optional isComposite() {
return Optional.ofNullable(this.isComposite);
}
/**
* @return Gets or sets the isGlobal flag of the module.
*
*/
public Optional isGlobal() {
return Optional.ofNullable(this.isGlobal);
}
/**
* @return Gets or sets the last modified time.
*
*/
public Optional lastModifiedTime() {
return Optional.ofNullable(this.lastModifiedTime);
}
/**
* @return The Azure Region where the resource lives
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the provisioning state of the module.
*
*/
public Optional provisioningState() {
return Optional.ofNullable(this.provisioningState);
}
/**
* @return Gets or sets the size in bytes of the module.
*
*/
public Optional sizeInBytes() {
return Optional.ofNullable(this.sizeInBytes);
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return The type of the resource.
*
*/
public String type() {
return this.type;
}
/**
* @return Gets or sets the version of the module.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetModuleResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer activityCount;
private @Nullable ContentLinkResponse contentLink;
private @Nullable String creationTime;
private @Nullable String description;
private @Nullable ModuleErrorInfoResponse error;
private @Nullable String etag;
private String id;
private @Nullable Boolean isComposite;
private @Nullable Boolean isGlobal;
private @Nullable String lastModifiedTime;
private @Nullable String location;
private String name;
private @Nullable String provisioningState;
private @Nullable Double sizeInBytes;
private @Nullable Map tags;
private String type;
private @Nullable String version;
public Builder() {}
public Builder(GetModuleResult defaults) {
Objects.requireNonNull(defaults);
this.activityCount = defaults.activityCount;
this.contentLink = defaults.contentLink;
this.creationTime = defaults.creationTime;
this.description = defaults.description;
this.error = defaults.error;
this.etag = defaults.etag;
this.id = defaults.id;
this.isComposite = defaults.isComposite;
this.isGlobal = defaults.isGlobal;
this.lastModifiedTime = defaults.lastModifiedTime;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.sizeInBytes = defaults.sizeInBytes;
this.tags = defaults.tags;
this.type = defaults.type;
this.version = defaults.version;
}
@CustomType.Setter
public Builder activityCount(@Nullable Integer activityCount) {
this.activityCount = activityCount;
return this;
}
@CustomType.Setter
public Builder contentLink(@Nullable ContentLinkResponse contentLink) {
this.contentLink = contentLink;
return this;
}
@CustomType.Setter
public Builder creationTime(@Nullable String creationTime) {
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder error(@Nullable ModuleErrorInfoResponse error) {
this.error = error;
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("GetModuleResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isComposite(@Nullable Boolean isComposite) {
this.isComposite = isComposite;
return this;
}
@CustomType.Setter
public Builder isGlobal(@Nullable Boolean isGlobal) {
this.isGlobal = isGlobal;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(@Nullable String lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
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("GetModuleResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(@Nullable String provisioningState) {
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sizeInBytes(@Nullable Double sizeInBytes) {
this.sizeInBytes = sizeInBytes;
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("GetModuleResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public GetModuleResult build() {
final var _resultValue = new GetModuleResult();
_resultValue.activityCount = activityCount;
_resultValue.contentLink = contentLink;
_resultValue.creationTime = creationTime;
_resultValue.description = description;
_resultValue.error = error;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.isComposite = isComposite;
_resultValue.isGlobal = isGlobal;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.sizeInBytes = sizeInBytes;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy