
com.pulumi.azurenative.securityinsights.outputs.FileMetadataResponse 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.securityinsights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FileMetadataResponse {
/**
* @return Indicates whether the file was deleted from the storage account.
*
*/
private String deleteStatus;
/**
* @return A URI with a valid SAS token to allow uploading / downloading the file.
*
*/
private String fileContentUri;
/**
* @return The format of the file
*
*/
private @Nullable String fileFormat;
/**
* @return The name of the file.
*
*/
private @Nullable String fileName;
/**
* @return The size of the file.
*
*/
private @Nullable Integer fileSize;
private FileMetadataResponse() {}
/**
* @return Indicates whether the file was deleted from the storage account.
*
*/
public String deleteStatus() {
return this.deleteStatus;
}
/**
* @return A URI with a valid SAS token to allow uploading / downloading the file.
*
*/
public String fileContentUri() {
return this.fileContentUri;
}
/**
* @return The format of the file
*
*/
public Optional fileFormat() {
return Optional.ofNullable(this.fileFormat);
}
/**
* @return The name of the file.
*
*/
public Optional fileName() {
return Optional.ofNullable(this.fileName);
}
/**
* @return The size of the file.
*
*/
public Optional fileSize() {
return Optional.ofNullable(this.fileSize);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FileMetadataResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String deleteStatus;
private String fileContentUri;
private @Nullable String fileFormat;
private @Nullable String fileName;
private @Nullable Integer fileSize;
public Builder() {}
public Builder(FileMetadataResponse defaults) {
Objects.requireNonNull(defaults);
this.deleteStatus = defaults.deleteStatus;
this.fileContentUri = defaults.fileContentUri;
this.fileFormat = defaults.fileFormat;
this.fileName = defaults.fileName;
this.fileSize = defaults.fileSize;
}
@CustomType.Setter
public Builder deleteStatus(String deleteStatus) {
if (deleteStatus == null) {
throw new MissingRequiredPropertyException("FileMetadataResponse", "deleteStatus");
}
this.deleteStatus = deleteStatus;
return this;
}
@CustomType.Setter
public Builder fileContentUri(String fileContentUri) {
if (fileContentUri == null) {
throw new MissingRequiredPropertyException("FileMetadataResponse", "fileContentUri");
}
this.fileContentUri = fileContentUri;
return this;
}
@CustomType.Setter
public Builder fileFormat(@Nullable String fileFormat) {
this.fileFormat = fileFormat;
return this;
}
@CustomType.Setter
public Builder fileName(@Nullable String fileName) {
this.fileName = fileName;
return this;
}
@CustomType.Setter
public Builder fileSize(@Nullable Integer fileSize) {
this.fileSize = fileSize;
return this;
}
public FileMetadataResponse build() {
final var _resultValue = new FileMetadataResponse();
_resultValue.deleteStatus = deleteStatus;
_resultValue.fileContentUri = fileContentUri;
_resultValue.fileFormat = fileFormat;
_resultValue.fileName = fileName;
_resultValue.fileSize = fileSize;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy