feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,123 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/pinpoint/Pinpoint_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Pinpoint
{
namespace Model
{
/**
* <p>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.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GCMChannelRequest">AWS
* API Reference</a></p>
*/
class AWS_PINPOINT_API GCMChannelRequest
{
public:
GCMChannelRequest();
GCMChannelRequest(Aws::Utils::Json::JsonView jsonValue);
GCMChannelRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline const Aws::String& GetApiKey() const{ return m_apiKey; }
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); }
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); }
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline GCMChannelRequest& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;}
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline GCMChannelRequest& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;}
/**
* <p>The Web API Key, also referred to as an <i>API_KEY</i> or <i>server key</i>,
* that you received from Google to communicate with Google services.</p>
*/
inline GCMChannelRequest& WithApiKey(const char* value) { SetApiKey(value); return *this;}
/**
* <p>Specifies whether to enable the GCM channel for the application.</p>
*/
inline bool GetEnabled() const{ return m_enabled; }
/**
* <p>Specifies whether to enable the GCM channel for the application.</p>
*/
inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
/**
* <p>Specifies whether to enable the GCM channel for the application.</p>
*/
inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
/**
* <p>Specifies whether to enable the GCM channel for the application.</p>
*/
inline GCMChannelRequest& WithEnabled(bool value) { SetEnabled(value); return *this;}
private:
Aws::String m_apiKey;
bool m_apiKeyHasBeenSet;
bool m_enabled;
bool m_enabledHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws