com.pulumi.azurenative.automation.outputs.ContentSourceResponse 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.ContentHashResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ContentSourceResponse {
/**
* @return Gets or sets the hash.
*
*/
private @Nullable ContentHashResponse hash;
/**
* @return Gets or sets the content source type.
*
*/
private @Nullable String type;
/**
* @return Gets or sets the value of the content. This is based on the content source type.
*
*/
private @Nullable String value;
/**
* @return Gets or sets the version of the content.
*
*/
private @Nullable String version;
private ContentSourceResponse() {}
/**
* @return Gets or sets the hash.
*
*/
public Optional hash() {
return Optional.ofNullable(this.hash);
}
/**
* @return Gets or sets the content source type.
*
*/
public Optional type() {
return Optional.ofNullable(this.type);
}
/**
* @return Gets or sets the value of the content. This is based on the content source type.
*
*/
public Optional value() {
return Optional.ofNullable(this.value);
}
/**
* @return Gets or sets the version of the content.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContentSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ContentHashResponse hash;
private @Nullable String type;
private @Nullable String value;
private @Nullable String version;
public Builder() {}
public Builder(ContentSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.hash = defaults.hash;
this.type = defaults.type;
this.value = defaults.value;
this.version = defaults.version;
}
@CustomType.Setter
public Builder hash(@Nullable ContentHashResponse hash) {
this.hash = hash;
return this;
}
@CustomType.Setter
public Builder type(@Nullable String type) {
this.type = type;
return this;
}
@CustomType.Setter
public Builder value(@Nullable String value) {
this.value = value;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public ContentSourceResponse build() {
final var _resultValue = new ContentSourceResponse();
_resultValue.hash = hash;
_resultValue.type = type;
_resultValue.value = value;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy