
com.pulumi.azurenative.media.outputs.GetAssetResult Maven / Gradle / Ivy
// *** 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.media.outputs;
import com.pulumi.azurenative.media.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAssetResult {
/**
* @return The alternate ID of the Asset.
*
*/
private @Nullable String alternateId;
/**
* @return The Asset ID.
*
*/
private String assetId;
/**
* @return The name of the asset blob container.
*
*/
private @Nullable String container;
/**
* @return The creation date of the Asset.
*
*/
private String created;
/**
* @return The Asset description.
*
*/
private @Nullable String description;
/**
* @return The Asset container encryption scope in the storage account.
*
*/
private @Nullable String encryptionScope;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The last modified date of the Asset.
*
*/
private String lastModified;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The name of the storage account.
*
*/
private @Nullable String storageAccountName;
/**
* @return The Asset encryption format. One of None or MediaStorageEncryption.
*
*/
private String storageEncryptionFormat;
/**
* @return The system metadata relating to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetAssetResult() {}
/**
* @return The alternate ID of the Asset.
*
*/
public Optional alternateId() {
return Optional.ofNullable(this.alternateId);
}
/**
* @return The Asset ID.
*
*/
public String assetId() {
return this.assetId;
}
/**
* @return The name of the asset blob container.
*
*/
public Optional container() {
return Optional.ofNullable(this.container);
}
/**
* @return The creation date of the Asset.
*
*/
public String created() {
return this.created;
}
/**
* @return The Asset description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The Asset container encryption scope in the storage account.
*
*/
public Optional encryptionScope() {
return Optional.ofNullable(this.encryptionScope);
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The last modified date of the Asset.
*
*/
public String lastModified() {
return this.lastModified;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The name of the storage account.
*
*/
public Optional storageAccountName() {
return Optional.ofNullable(this.storageAccountName);
}
/**
* @return The Asset encryption format. One of None or MediaStorageEncryption.
*
*/
public String storageEncryptionFormat() {
return this.storageEncryptionFormat;
}
/**
* @return The system metadata relating to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAssetResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String alternateId;
private String assetId;
private @Nullable String container;
private String created;
private @Nullable String description;
private @Nullable String encryptionScope;
private String id;
private String lastModified;
private String name;
private @Nullable String storageAccountName;
private String storageEncryptionFormat;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetAssetResult defaults) {
Objects.requireNonNull(defaults);
this.alternateId = defaults.alternateId;
this.assetId = defaults.assetId;
this.container = defaults.container;
this.created = defaults.created;
this.description = defaults.description;
this.encryptionScope = defaults.encryptionScope;
this.id = defaults.id;
this.lastModified = defaults.lastModified;
this.name = defaults.name;
this.storageAccountName = defaults.storageAccountName;
this.storageEncryptionFormat = defaults.storageEncryptionFormat;
this.systemData = defaults.systemData;
this.type = defaults.type;
}
@CustomType.Setter
public Builder alternateId(@Nullable String alternateId) {
this.alternateId = alternateId;
return this;
}
@CustomType.Setter
public Builder assetId(String assetId) {
if (assetId == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "assetId");
}
this.assetId = assetId;
return this;
}
@CustomType.Setter
public Builder container(@Nullable String container) {
this.container = container;
return this;
}
@CustomType.Setter
public Builder created(String created) {
if (created == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "created");
}
this.created = created;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder encryptionScope(@Nullable String encryptionScope) {
this.encryptionScope = encryptionScope;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder lastModified(String lastModified) {
if (lastModified == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "lastModified");
}
this.lastModified = lastModified;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder storageAccountName(@Nullable String storageAccountName) {
this.storageAccountName = storageAccountName;
return this;
}
@CustomType.Setter
public Builder storageEncryptionFormat(String storageEncryptionFormat) {
if (storageEncryptionFormat == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "storageEncryptionFormat");
}
this.storageEncryptionFormat = storageEncryptionFormat;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAssetResult", "type");
}
this.type = type;
return this;
}
public GetAssetResult build() {
final var _resultValue = new GetAssetResult();
_resultValue.alternateId = alternateId;
_resultValue.assetId = assetId;
_resultValue.container = container;
_resultValue.created = created;
_resultValue.description = description;
_resultValue.encryptionScope = encryptionScope;
_resultValue.id = id;
_resultValue.lastModified = lastModified;
_resultValue.name = name;
_resultValue.storageAccountName = storageAccountName;
_resultValue.storageEncryptionFormat = storageEncryptionFormat;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy