All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.compute.outputs.SharingProfileResponse 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.compute.outputs;

import com.pulumi.azurenative.compute.outputs.CommunityGalleryInfoResponse;
import com.pulumi.azurenative.compute.outputs.SharingProfileGroupResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SharingProfileResponse {
    /**
     * @return Information of community gallery if current gallery is shared to community.
     * 
     */
    private @Nullable CommunityGalleryInfoResponse communityGalleryInfo;
    /**
     * @return A list of sharing profile groups.
     * 
     */
    private List groups;
    /**
     * @return This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**
     * 
     */
    private @Nullable String permissions;

    private SharingProfileResponse() {}
    /**
     * @return Information of community gallery if current gallery is shared to community.
     * 
     */
    public Optional communityGalleryInfo() {
        return Optional.ofNullable(this.communityGalleryInfo);
    }
    /**
     * @return A list of sharing profile groups.
     * 
     */
    public List groups() {
        return this.groups;
    }
    /**
     * @return This property allows you to specify the permission of sharing gallery. <br><br> Possible values are: <br><br> **Private** <br><br> **Groups** <br><br> **Community**
     * 
     */
    public Optional permissions() {
        return Optional.ofNullable(this.permissions);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(SharingProfileResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CommunityGalleryInfoResponse communityGalleryInfo;
        private List groups;
        private @Nullable String permissions;
        public Builder() {}
        public Builder(SharingProfileResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.communityGalleryInfo = defaults.communityGalleryInfo;
    	      this.groups = defaults.groups;
    	      this.permissions = defaults.permissions;
        }

        @CustomType.Setter
        public Builder communityGalleryInfo(@Nullable CommunityGalleryInfoResponse communityGalleryInfo) {

            this.communityGalleryInfo = communityGalleryInfo;
            return this;
        }
        @CustomType.Setter
        public Builder groups(List groups) {
            if (groups == null) {
              throw new MissingRequiredPropertyException("SharingProfileResponse", "groups");
            }
            this.groups = groups;
            return this;
        }
        public Builder groups(SharingProfileGroupResponse... groups) {
            return groups(List.of(groups));
        }
        @CustomType.Setter
        public Builder permissions(@Nullable String permissions) {

            this.permissions = permissions;
            return this;
        }
        public SharingProfileResponse build() {
            final var _resultValue = new SharingProfileResponse();
            _resultValue.communityGalleryInfo = communityGalleryInfo;
            _resultValue.groups = groups;
            _resultValue.permissions = permissions;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy