// *** 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.azure.datashare.outputs;

import com.pulumi.azure.datashare.outputs.GetShareSnapshotSchedule;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetShareResult {
    private String accountId;
    /**
     * @return The description of the Data Share.
     * 
     */
    private String description;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return The kind of the Data Share.
     * 
     */
    private String kind;
    /**
     * @return The name of the snapshot schedule.
     * 
     */
    private String name;
    /**
     * @return A `snapshot_schedule` block as defined below.
     * 
     */
    private List<GetShareSnapshotSchedule> snapshotSchedules;
    /**
     * @return The terms of the Data Share.
     * 
     */
    private String terms;

    private GetShareResult() {}
    public String accountId() {
        return this.accountId;
    }
    /**
     * @return The description of the Data Share.
     * 
     */
    public String description() {
        return this.description;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The kind of the Data Share.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The name of the snapshot schedule.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A `snapshot_schedule` block as defined below.
     * 
     */
    public List<GetShareSnapshotSchedule> snapshotSchedules() {
        return this.snapshotSchedules;
    }
    /**
     * @return The terms of the Data Share.
     * 
     */
    public String terms() {
        return this.terms;
    }

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

    public static Builder builder(GetShareResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String accountId;
        private String description;
        private String id;
        private String kind;
        private String name;
        private List<GetShareSnapshotSchedule> snapshotSchedules;
        private String terms;
        public Builder() {}
        public Builder(GetShareResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountId = defaults.accountId;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.snapshotSchedules = defaults.snapshotSchedules;
    	      this.terms = defaults.terms;
        }

        @CustomType.Setter
        public Builder accountId(String accountId) {
            this.accountId = Objects.requireNonNull(accountId);
            return this;
        }
        @CustomType.Setter
        public Builder description(String description) {
            this.description = Objects.requireNonNull(description);
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            this.id = Objects.requireNonNull(id);
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            this.kind = Objects.requireNonNull(kind);
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            this.name = Objects.requireNonNull(name);
            return this;
        }
        @CustomType.Setter
        public Builder snapshotSchedules(List<GetShareSnapshotSchedule> snapshotSchedules) {
            this.snapshotSchedules = Objects.requireNonNull(snapshotSchedules);
            return this;
        }
        public Builder snapshotSchedules(GetShareSnapshotSchedule... snapshotSchedules) {
            return snapshotSchedules(List.of(snapshotSchedules));
        }
        @CustomType.Setter
        public Builder terms(String terms) {
            this.terms = Objects.requireNonNull(terms);
            return this;
        }
        public GetShareResult build() {
            final var o = new GetShareResult();
            o.accountId = accountId;
            o.description = description;
            o.id = id;
            o.kind = kind;
            o.name = name;
            o.snapshotSchedules = snapshotSchedules;
            o.terms = terms;
            return o;
        }
    }
}
