// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.notificationhubs.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Description of a NotificationHub GcmCredential. */
@Fluent
public final class GcmCredentialProperties {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(GcmCredentialProperties.class);

    /*
     * The FCM legacy endpoint. Default value is
     * 'https://fcm.googleapis.com/fcm/send'
     */
    @JsonProperty(value = "gcmEndpoint")
    private String gcmEndpoint;

    /*
     * The Google API key.
     */
    @JsonProperty(value = "googleApiKey")
    private String googleApiKey;

    /**
     * Get the gcmEndpoint property: The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send'.
     *
     * @return the gcmEndpoint value.
     */
    public String gcmEndpoint() {
        return this.gcmEndpoint;
    }

    /**
     * Set the gcmEndpoint property: The FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send'.
     *
     * @param gcmEndpoint the gcmEndpoint value to set.
     * @return the GcmCredentialProperties object itself.
     */
    public GcmCredentialProperties withGcmEndpoint(String gcmEndpoint) {
        this.gcmEndpoint = gcmEndpoint;
        return this;
    }

    /**
     * Get the googleApiKey property: The Google API key.
     *
     * @return the googleApiKey value.
     */
    public String googleApiKey() {
        return this.googleApiKey;
    }

    /**
     * Set the googleApiKey property: The Google API key.
     *
     * @param googleApiKey the googleApiKey value to set.
     * @return the GcmCredentialProperties object itself.
     */
    public GcmCredentialProperties withGoogleApiKey(String googleApiKey) {
        this.googleApiKey = googleApiKey;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
