
com.pulumi.azurenative.compute.outputs.GetGalleryResult 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.compute.outputs;
import com.pulumi.azurenative.compute.outputs.GalleryIdentifierResponse;
import com.pulumi.azurenative.compute.outputs.SharingProfileResponse;
import com.pulumi.azurenative.compute.outputs.SharingStatusResponse;
import com.pulumi.azurenative.compute.outputs.SoftDeletePolicyResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetGalleryResult {
/**
* @return The description of this Shared Image Gallery resource. This property is updatable.
*
*/
private @Nullable String description;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return Describes the gallery unique name.
*
*/
private @Nullable GalleryIdentifierResponse identifier;
/**
* @return Resource location
*
*/
private String location;
/**
* @return Resource name
*
*/
private String name;
/**
* @return The provisioning state, which only appears in the response.
*
*/
private String provisioningState;
/**
* @return Profile for gallery sharing to subscription or tenant
*
*/
private @Nullable SharingProfileResponse sharingProfile;
/**
* @return Sharing status of current gallery.
*
*/
private SharingStatusResponse sharingStatus;
/**
* @return Contains information about the soft deletion policy of the gallery.
*
*/
private @Nullable SoftDeletePolicyResponse softDeletePolicy;
/**
* @return Resource tags
*
*/
private @Nullable Map tags;
/**
* @return Resource type
*
*/
private String type;
private GetGalleryResult() {}
/**
* @return The description of this Shared Image Gallery resource. This property is updatable.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return Describes the gallery unique name.
*
*/
public Optional identifier() {
return Optional.ofNullable(this.identifier);
}
/**
* @return Resource location
*
*/
public String location() {
return this.location;
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return The provisioning state, which only appears in the response.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Profile for gallery sharing to subscription or tenant
*
*/
public Optional sharingProfile() {
return Optional.ofNullable(this.sharingProfile);
}
/**
* @return Sharing status of current gallery.
*
*/
public SharingStatusResponse sharingStatus() {
return this.sharingStatus;
}
/**
* @return Contains information about the soft deletion policy of the gallery.
*
*/
public Optional softDeletePolicy() {
return Optional.ofNullable(this.softDeletePolicy);
}
/**
* @return Resource tags
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetGalleryResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String description;
private String id;
private @Nullable GalleryIdentifierResponse identifier;
private String location;
private String name;
private String provisioningState;
private @Nullable SharingProfileResponse sharingProfile;
private SharingStatusResponse sharingStatus;
private @Nullable SoftDeletePolicyResponse softDeletePolicy;
private @Nullable Map tags;
private String type;
public Builder() {}
public Builder(GetGalleryResult defaults) {
Objects.requireNonNull(defaults);
this.description = defaults.description;
this.id = defaults.id;
this.identifier = defaults.identifier;
this.location = defaults.location;
this.name = defaults.name;
this.provisioningState = defaults.provisioningState;
this.sharingProfile = defaults.sharingProfile;
this.sharingStatus = defaults.sharingStatus;
this.softDeletePolicy = defaults.softDeletePolicy;
this.tags = defaults.tags;
this.type = defaults.type;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetGalleryResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identifier(@Nullable GalleryIdentifierResponse identifier) {
this.identifier = identifier;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetGalleryResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetGalleryResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetGalleryResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sharingProfile(@Nullable SharingProfileResponse sharingProfile) {
this.sharingProfile = sharingProfile;
return this;
}
@CustomType.Setter
public Builder sharingStatus(SharingStatusResponse sharingStatus) {
if (sharingStatus == null) {
throw new MissingRequiredPropertyException("GetGalleryResult", "sharingStatus");
}
this.sharingStatus = sharingStatus;
return this;
}
@CustomType.Setter
public Builder softDeletePolicy(@Nullable SoftDeletePolicyResponse softDeletePolicy) {
this.softDeletePolicy = softDeletePolicy;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetGalleryResult", "type");
}
this.type = type;
return this;
}
public GetGalleryResult build() {
final var _resultValue = new GetGalleryResult();
_resultValue.description = description;
_resultValue.id = id;
_resultValue.identifier = identifier;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.provisioningState = provisioningState;
_resultValue.sharingProfile = sharingProfile;
_resultValue.sharingStatus = sharingStatus;
_resultValue.softDeletePolicy = softDeletePolicy;
_resultValue.tags = tags;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy