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

com.pulumi.azurenative.domainregistration.outputs.TldLegalAgreementResponse 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.domainregistration.outputs;

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 TldLegalAgreementResponse {
    /**
     * @return Unique identifier for the agreement.
     * 
     */
    private String agreementKey;
    /**
     * @return Agreement details.
     * 
     */
    private String content;
    /**
     * @return Agreement title.
     * 
     */
    private String title;
    /**
     * @return URL where a copy of the agreement details is hosted.
     * 
     */
    private @Nullable String url;

    private TldLegalAgreementResponse() {}
    /**
     * @return Unique identifier for the agreement.
     * 
     */
    public String agreementKey() {
        return this.agreementKey;
    }
    /**
     * @return Agreement details.
     * 
     */
    public String content() {
        return this.content;
    }
    /**
     * @return Agreement title.
     * 
     */
    public String title() {
        return this.title;
    }
    /**
     * @return URL where a copy of the agreement details is hosted.
     * 
     */
    public Optional url() {
        return Optional.ofNullable(this.url);
    }

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

    public static Builder builder(TldLegalAgreementResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String agreementKey;
        private String content;
        private String title;
        private @Nullable String url;
        public Builder() {}
        public Builder(TldLegalAgreementResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.agreementKey = defaults.agreementKey;
    	      this.content = defaults.content;
    	      this.title = defaults.title;
    	      this.url = defaults.url;
        }

        @CustomType.Setter
        public Builder agreementKey(String agreementKey) {
            if (agreementKey == null) {
              throw new MissingRequiredPropertyException("TldLegalAgreementResponse", "agreementKey");
            }
            this.agreementKey = agreementKey;
            return this;
        }
        @CustomType.Setter
        public Builder content(String content) {
            if (content == null) {
              throw new MissingRequiredPropertyException("TldLegalAgreementResponse", "content");
            }
            this.content = content;
            return this;
        }
        @CustomType.Setter
        public Builder title(String title) {
            if (title == null) {
              throw new MissingRequiredPropertyException("TldLegalAgreementResponse", "title");
            }
            this.title = title;
            return this;
        }
        @CustomType.Setter
        public Builder url(@Nullable String url) {

            this.url = url;
            return this;
        }
        public TldLegalAgreementResponse build() {
            final var _resultValue = new TldLegalAgreementResponse();
            _resultValue.agreementKey = agreementKey;
            _resultValue.content = content;
            _resultValue.title = title;
            _resultValue.url = url;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy