com.pulumi.azure.automation.outputs.RunBookDraft Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.automation.outputs;
import com.pulumi.azure.automation.outputs.RunBookDraftContentLink;
import com.pulumi.azure.automation.outputs.RunBookDraftParameter;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RunBookDraft {
/**
* @return A `publish_content_link` block as defined above.
*
*/
private @Nullable RunBookDraftContentLink contentLink;
private @Nullable String creationTime;
/**
* @return Whether the draft in edit mode.
*
*/
private @Nullable Boolean editModeEnabled;
private @Nullable String lastModifiedTime;
/**
* @return Specifies the output types of the runbook.
*
*/
private @Nullable List outputTypes;
/**
* @return A list of `parameters` block as defined below.
*
*/
private @Nullable List parameters;
private RunBookDraft() {}
/**
* @return A `publish_content_link` block as defined above.
*
*/
public Optional contentLink() {
return Optional.ofNullable(this.contentLink);
}
public Optional creationTime() {
return Optional.ofNullable(this.creationTime);
}
/**
* @return Whether the draft in edit mode.
*
*/
public Optional editModeEnabled() {
return Optional.ofNullable(this.editModeEnabled);
}
public Optional lastModifiedTime() {
return Optional.ofNullable(this.lastModifiedTime);
}
/**
* @return Specifies the output types of the runbook.
*
*/
public List outputTypes() {
return this.outputTypes == null ? List.of() : this.outputTypes;
}
/**
* @return A list of `parameters` block as defined below.
*
*/
public List parameters() {
return this.parameters == null ? List.of() : this.parameters;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RunBookDraft defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable RunBookDraftContentLink contentLink;
private @Nullable String creationTime;
private @Nullable Boolean editModeEnabled;
private @Nullable String lastModifiedTime;
private @Nullable List outputTypes;
private @Nullable List parameters;
public Builder() {}
public Builder(RunBookDraft defaults) {
Objects.requireNonNull(defaults);
this.contentLink = defaults.contentLink;
this.creationTime = defaults.creationTime;
this.editModeEnabled = defaults.editModeEnabled;
this.lastModifiedTime = defaults.lastModifiedTime;
this.outputTypes = defaults.outputTypes;
this.parameters = defaults.parameters;
}
@CustomType.Setter
public Builder contentLink(@Nullable RunBookDraftContentLink contentLink) {
this.contentLink = contentLink;
return this;
}
@CustomType.Setter
public Builder creationTime(@Nullable String creationTime) {
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder editModeEnabled(@Nullable Boolean editModeEnabled) {
this.editModeEnabled = editModeEnabled;
return this;
}
@CustomType.Setter
public Builder lastModifiedTime(@Nullable String lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
return this;
}
@CustomType.Setter
public Builder outputTypes(@Nullable List outputTypes) {
this.outputTypes = outputTypes;
return this;
}
public Builder outputTypes(String... outputTypes) {
return outputTypes(List.of(outputTypes));
}
@CustomType.Setter
public Builder parameters(@Nullable List parameters) {
this.parameters = parameters;
return this;
}
public Builder parameters(RunBookDraftParameter... parameters) {
return parameters(List.of(parameters));
}
public RunBookDraft build() {
final var _resultValue = new RunBookDraft();
_resultValue.contentLink = contentLink;
_resultValue.creationTime = creationTime;
_resultValue.editModeEnabled = editModeEnabled;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.outputTypes = outputTypes;
_resultValue.parameters = parameters;
return _resultValue;
}
}
}