/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the status and settings of the GCM channel for an application. This
* channel enables Amazon Pinpoint to send push notifications through the Firebase
* Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM),
* service.See Also:
AWS
* API Reference
The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline const Aws::String& GetApiKey() const{ return m_apiKey; } /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; } /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; } /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); } /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); } /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline GCMChannelRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;} /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline GCMChannelRequest& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;} /** *The Web API Key, also referred to as an API_KEY or server key, * that you received from Google to communicate with Google services.
*/ inline GCMChannelRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;} /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline const Aws::String& GetDefaultAuthenticationMethod() const{ return m_defaultAuthenticationMethod; } /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline bool DefaultAuthenticationMethodHasBeenSet() const { return m_defaultAuthenticationMethodHasBeenSet; } /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline void SetDefaultAuthenticationMethod(const Aws::String& value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod = value; } /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline void SetDefaultAuthenticationMethod(Aws::String&& value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod = std::move(value); } /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline void SetDefaultAuthenticationMethod(const char* value) { m_defaultAuthenticationMethodHasBeenSet = true; m_defaultAuthenticationMethod.assign(value); } /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline GCMChannelRequest& WithDefaultAuthenticationMethod(const Aws::String& value) { SetDefaultAuthenticationMethod(value); return *this;} /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline GCMChannelRequest& WithDefaultAuthenticationMethod(Aws::String&& value) { SetDefaultAuthenticationMethod(std::move(value)); return *this;} /** *The default authentication method used for GCM. Values are either "TOKEN" or * "KEY". Defaults to "KEY".
*/ inline GCMChannelRequest& WithDefaultAuthenticationMethod(const char* value) { SetDefaultAuthenticationMethod(value); return *this;} /** *Specifies whether to enable the GCM channel for the application.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Specifies whether to enable the GCM channel for the application.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Specifies whether to enable the GCM channel for the application.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Specifies whether to enable the GCM channel for the application.
*/ inline GCMChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline const Aws::String& GetServiceJson() const{ return m_serviceJson; } /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline bool ServiceJsonHasBeenSet() const { return m_serviceJsonHasBeenSet; } /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline void SetServiceJson(const Aws::String& value) { m_serviceJsonHasBeenSet = true; m_serviceJson = value; } /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline void SetServiceJson(Aws::String&& value) { m_serviceJsonHasBeenSet = true; m_serviceJson = std::move(value); } /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline void SetServiceJson(const char* value) { m_serviceJsonHasBeenSet = true; m_serviceJson.assign(value); } /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline GCMChannelRequest& WithServiceJson(const Aws::String& value) { SetServiceJson(value); return *this;} /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline GCMChannelRequest& WithServiceJson(Aws::String&& value) { SetServiceJson(std::move(value)); return *this;} /** *The contents of the JSON file provided by Google during registration in order * to generate an access token for authentication. For more information see Migrate from * legacy FCM APIs to HTTP v1.
*/ inline GCMChannelRequest& WithServiceJson(const char* value) { SetServiceJson(value); return *this;} private: Aws::String m_apiKey; bool m_apiKeyHasBeenSet = false; Aws::String m_defaultAuthenticationMethod; bool m_defaultAuthenticationMethodHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_serviceJson; bool m_serviceJsonHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws