
com.pulumi.azurenative.automation.outputs.RunbookDraftResponse 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.RunbookParameterResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class RunbookDraftResponse {
/**
* @return Gets or sets the creation time of the runbook draft.
*
*/
private @Nullable String creationTime;
/**
* @return Gets or sets the draft runbook content link.
*
*/
private @Nullable ContentLinkResponse draftContentLink;
/**
* @return Gets or sets whether runbook is in edit mode.
*
*/
private @Nullable Boolean inEdit;
/**
* @return Gets or sets the last modified time of the runbook draft.
*
*/
private @Nullable String lastModifiedTime;
/**
* @return Gets or sets the runbook output types.
*
*/
private @Nullable List outputTypes;
/**
* @return Gets or sets the runbook draft parameters.
*
*/
private @Nullable Map parameters;
private RunbookDraftResponse() {}
/**
* @return Gets or sets the creation time of the runbook draft.
*
*/
public Optional creationTime() {
return Optional.ofNullable(this.creationTime);
}
/**
* @return Gets or sets the draft runbook content link.
*
*/
public Optional draftContentLink() {
return Optional.ofNullable(this.draftContentLink);
}
/**
* @return Gets or sets whether runbook is in edit mode.
*
*/
public Optional inEdit() {
return Optional.ofNullable(this.inEdit);
}
/**
* @return Gets or sets the last modified time of the runbook draft.
*
*/
public Optional lastModifiedTime() {
return Optional.ofNullable(this.lastModifiedTime);
}
/**
* @return Gets or sets the runbook output types.
*
*/
public List outputTypes() {
return this.outputTypes == null ? List.of() : this.outputTypes;
}
/**
* @return Gets or sets the runbook draft parameters.
*
*/
public Map parameters() {
return this.parameters == null ? Map.of() : this.parameters;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RunbookDraftResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String creationTime;
private @Nullable ContentLinkResponse draftContentLink;
private @Nullable Boolean inEdit;
private @Nullable String lastModifiedTime;
private @Nullable List outputTypes;
private @Nullable Map parameters;
public Builder() {}
public Builder(RunbookDraftResponse defaults) {
Objects.requireNonNull(defaults);
this.creationTime = defaults.creationTime;
this.draftContentLink = defaults.draftContentLink;
this.inEdit = defaults.inEdit;
this.lastModifiedTime = defaults.lastModifiedTime;
this.outputTypes = defaults.outputTypes;
this.parameters = defaults.parameters;
}
@CustomType.Setter
public Builder creationTime(@Nullable String creationTime) {
this.creationTime = creationTime;
return this;
}
@CustomType.Setter
public Builder draftContentLink(@Nullable ContentLinkResponse draftContentLink) {
this.draftContentLink = draftContentLink;
return this;
}
@CustomType.Setter
public Builder inEdit(@Nullable Boolean inEdit) {
this.inEdit = inEdit;
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 Map parameters) {
this.parameters = parameters;
return this;
}
public RunbookDraftResponse build() {
final var _resultValue = new RunbookDraftResponse();
_resultValue.creationTime = creationTime;
_resultValue.draftContentLink = draftContentLink;
_resultValue.inEdit = inEdit;
_resultValue.lastModifiedTime = lastModifiedTime;
_resultValue.outputTypes = outputTypes;
_resultValue.parameters = parameters;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy