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,114 @@
/**
* 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/pinpoint/PinpointRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/pinpoint/model/WriteEventStream.h>
#include <utility>
namespace Aws
{
namespace Pinpoint
{
namespace Model
{
/**
*/
class AWS_PINPOINT_API PutEventStreamRequest : public PinpointRequest
{
public:
PutEventStreamRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "PutEventStream"; }
Aws::String SerializePayload() const override;
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline PutEventStreamRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline PutEventStreamRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
/**
* <p>The unique identifier for the application. This identifier is displayed as
* the <b>Project ID</b> on the Amazon Pinpoint console.</p>
*/
inline PutEventStreamRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
inline const WriteEventStream& GetWriteEventStream() const{ return m_writeEventStream; }
inline bool WriteEventStreamHasBeenSet() const { return m_writeEventStreamHasBeenSet; }
inline void SetWriteEventStream(const WriteEventStream& value) { m_writeEventStreamHasBeenSet = true; m_writeEventStream = value; }
inline void SetWriteEventStream(WriteEventStream&& value) { m_writeEventStreamHasBeenSet = true; m_writeEventStream = std::move(value); }
inline PutEventStreamRequest& WithWriteEventStream(const WriteEventStream& value) { SetWriteEventStream(value); return *this;}
inline PutEventStreamRequest& WithWriteEventStream(WriteEventStream&& value) { SetWriteEventStream(std::move(value)); return *this;}
private:
Aws::String m_applicationId;
bool m_applicationIdHasBeenSet;
WriteEventStream m_writeEventStream;
bool m_writeEventStreamHasBeenSet;
};
} // namespace Model
} // namespace Pinpoint
} // namespace Aws