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

com.pulumi.azurenative.notificationhubs.outputs.BrowserCredentialPropertiesResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.notificationhubs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class BrowserCredentialPropertiesResponse {
    /**
     * @return Gets or sets web push subject.
     * 
     */
    private String subject;
    /**
     * @return Gets or sets VAPID private key.
     * 
     */
    private String vapidPrivateKey;
    /**
     * @return Gets or sets VAPID public key.
     * 
     */
    private String vapidPublicKey;

    private BrowserCredentialPropertiesResponse() {}
    /**
     * @return Gets or sets web push subject.
     * 
     */
    public String subject() {
        return this.subject;
    }
    /**
     * @return Gets or sets VAPID private key.
     * 
     */
    public String vapidPrivateKey() {
        return this.vapidPrivateKey;
    }
    /**
     * @return Gets or sets VAPID public key.
     * 
     */
    public String vapidPublicKey() {
        return this.vapidPublicKey;
    }

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

    public static Builder builder(BrowserCredentialPropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String subject;
        private String vapidPrivateKey;
        private String vapidPublicKey;
        public Builder() {}
        public Builder(BrowserCredentialPropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.subject = defaults.subject;
    	      this.vapidPrivateKey = defaults.vapidPrivateKey;
    	      this.vapidPublicKey = defaults.vapidPublicKey;
        }

        @CustomType.Setter
        public Builder subject(String subject) {
            if (subject == null) {
              throw new MissingRequiredPropertyException("BrowserCredentialPropertiesResponse", "subject");
            }
            this.subject = subject;
            return this;
        }
        @CustomType.Setter
        public Builder vapidPrivateKey(String vapidPrivateKey) {
            if (vapidPrivateKey == null) {
              throw new MissingRequiredPropertyException("BrowserCredentialPropertiesResponse", "vapidPrivateKey");
            }
            this.vapidPrivateKey = vapidPrivateKey;
            return this;
        }
        @CustomType.Setter
        public Builder vapidPublicKey(String vapidPublicKey) {
            if (vapidPublicKey == null) {
              throw new MissingRequiredPropertyException("BrowserCredentialPropertiesResponse", "vapidPublicKey");
            }
            this.vapidPublicKey = vapidPublicKey;
            return this;
        }
        public BrowserCredentialPropertiesResponse build() {
            final var _resultValue = new BrowserCredentialPropertiesResponse();
            _resultValue.subject = subject;
            _resultValue.vapidPrivateKey = vapidPrivateKey;
            _resultValue.vapidPublicKey = vapidPublicKey;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy