com.pulumi.azurenative.automation.inputs.ContentHashArgs 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.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
/**
* Definition of the runbook property type.
*
*/
public final class ContentHashArgs extends com.pulumi.resources.ResourceArgs {
public static final ContentHashArgs Empty = new ContentHashArgs();
/**
* Gets or sets the content hash algorithm used to hash the content.
*
*/
@Import(name="algorithm", required=true)
private Output algorithm;
/**
* @return Gets or sets the content hash algorithm used to hash the content.
*
*/
public Output algorithm() {
return this.algorithm;
}
/**
* Gets or sets expected hash value of the content.
*
*/
@Import(name="value", required=true)
private Output value;
/**
* @return Gets or sets expected hash value of the content.
*
*/
public Output value() {
return this.value;
}
private ContentHashArgs() {}
private ContentHashArgs(ContentHashArgs $) {
this.algorithm = $.algorithm;
this.value = $.value;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ContentHashArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ContentHashArgs $;
public Builder() {
$ = new ContentHashArgs();
}
public Builder(ContentHashArgs defaults) {
$ = new ContentHashArgs(Objects.requireNonNull(defaults));
}
/**
* @param algorithm Gets or sets the content hash algorithm used to hash the content.
*
* @return builder
*
*/
public Builder algorithm(Output algorithm) {
$.algorithm = algorithm;
return this;
}
/**
* @param algorithm Gets or sets the content hash algorithm used to hash the content.
*
* @return builder
*
*/
public Builder algorithm(String algorithm) {
return algorithm(Output.of(algorithm));
}
/**
* @param value Gets or sets expected hash value of the content.
*
* @return builder
*
*/
public Builder value(Output value) {
$.value = value;
return this;
}
/**
* @param value Gets or sets expected hash value of the content.
*
* @return builder
*
*/
public Builder value(String value) {
return value(Output.of(value));
}
public ContentHashArgs build() {
if ($.algorithm == null) {
throw new MissingRequiredPropertyException("ContentHashArgs", "algorithm");
}
if ($.value == null) {
throw new MissingRequiredPropertyException("ContentHashArgs", "value");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy