com.pulumi.alicloud.fc.outputs.V3LayerVersionCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.fc.outputs;
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 V3LayerVersionCode {
/**
* @return The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
*
*/
private @Nullable String checksum;
/**
* @return Name of the OSS Bucket where the user stores the Layer Code ZIP package.
*
*/
private @Nullable String ossBucketName;
/**
* @return Name of the OSS Object where the user stores the Layer Code ZIP package.
*
*/
private @Nullable String ossObjectName;
/**
* @return Base 64 encoding of Layer Code ZIP package.
*
*/
private @Nullable String zipFile;
private V3LayerVersionCode() {}
/**
* @return The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
*
*/
public Optional checksum() {
return Optional.ofNullable(this.checksum);
}
/**
* @return Name of the OSS Bucket where the user stores the Layer Code ZIP package.
*
*/
public Optional ossBucketName() {
return Optional.ofNullable(this.ossBucketName);
}
/**
* @return Name of the OSS Object where the user stores the Layer Code ZIP package.
*
*/
public Optional ossObjectName() {
return Optional.ofNullable(this.ossObjectName);
}
/**
* @return Base 64 encoding of Layer Code ZIP package.
*
*/
public Optional zipFile() {
return Optional.ofNullable(this.zipFile);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(V3LayerVersionCode defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String checksum;
private @Nullable String ossBucketName;
private @Nullable String ossObjectName;
private @Nullable String zipFile;
public Builder() {}
public Builder(V3LayerVersionCode defaults) {
Objects.requireNonNull(defaults);
this.checksum = defaults.checksum;
this.ossBucketName = defaults.ossBucketName;
this.ossObjectName = defaults.ossObjectName;
this.zipFile = defaults.zipFile;
}
@CustomType.Setter
public Builder checksum(@Nullable String checksum) {
this.checksum = checksum;
return this;
}
@CustomType.Setter
public Builder ossBucketName(@Nullable String ossBucketName) {
this.ossBucketName = ossBucketName;
return this;
}
@CustomType.Setter
public Builder ossObjectName(@Nullable String ossObjectName) {
this.ossObjectName = ossObjectName;
return this;
}
@CustomType.Setter
public Builder zipFile(@Nullable String zipFile) {
this.zipFile = zipFile;
return this;
}
public V3LayerVersionCode build() {
final var _resultValue = new V3LayerVersionCode();
_resultValue.checksum = checksum;
_resultValue.ossBucketName = ossBucketName;
_resultValue.ossObjectName = ossObjectName;
_resultValue.zipFile = zipFile;
return _resultValue;
}
}
}