com.pulumi.azurenative.testbase.outputs.HighlightedFileResponse 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.testbase.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 HighlightedFileResponse {
/**
* @return The path of the highlighted file.
*
*/
private String path;
/**
* @return The name of sections to highlight.
*
*/
private @Nullable List sections;
/**
* @return A flag to save whether this file is viewed by user.
*
*/
private @Nullable Boolean visited;
private HighlightedFileResponse() {}
/**
* @return The path of the highlighted file.
*
*/
public String path() {
return this.path;
}
/**
* @return The name of sections to highlight.
*
*/
public List sections() {
return this.sections == null ? List.of() : this.sections;
}
/**
* @return A flag to save whether this file is viewed by user.
*
*/
public Optional visited() {
return Optional.ofNullable(this.visited);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(HighlightedFileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String path;
private @Nullable List sections;
private @Nullable Boolean visited;
public Builder() {}
public Builder(HighlightedFileResponse defaults) {
Objects.requireNonNull(defaults);
this.path = defaults.path;
this.sections = defaults.sections;
this.visited = defaults.visited;
}
@CustomType.Setter
public Builder path(String path) {
if (path == null) {
throw new MissingRequiredPropertyException("HighlightedFileResponse", "path");
}
this.path = path;
return this;
}
@CustomType.Setter
public Builder sections(@Nullable List sections) {
this.sections = sections;
return this;
}
public Builder sections(String... sections) {
return sections(List.of(sections));
}
@CustomType.Setter
public Builder visited(@Nullable Boolean visited) {
this.visited = visited;
return this;
}
public HighlightedFileResponse build() {
final var _resultValue = new HighlightedFileResponse();
_resultValue.path = path;
_resultValue.sections = sections;
_resultValue.visited = visited;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy