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,145 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/events/CloudWatchEvents_EXPORTS.h>
#include <aws/events/CloudWatchEventsRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CloudWatchEvents
{
namespace Model
{
/**
*/
class AWS_CLOUDWATCHEVENTS_API TestEventPatternRequest : public CloudWatchEventsRequest
{
public:
TestEventPatternRequest();
// 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 "TestEventPattern"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline const Aws::String& GetEventPattern() const{ return m_eventPattern; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); }
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline TestEventPatternRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline TestEventPatternRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;}
/**
* <p>The event pattern. For more information, see <a
* href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html">Events
* and Event Patterns</a> in the <i>Amazon EventBridge User Guide</i>.</p>
*/
inline TestEventPatternRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;}
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline const Aws::String& GetEvent() const{ return m_event; }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline bool EventHasBeenSet() const { return m_eventHasBeenSet; }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline void SetEvent(const Aws::String& value) { m_eventHasBeenSet = true; m_event = value; }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline void SetEvent(Aws::String&& value) { m_eventHasBeenSet = true; m_event = std::move(value); }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline void SetEvent(const char* value) { m_eventHasBeenSet = true; m_event.assign(value); }
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline TestEventPatternRequest& WithEvent(const Aws::String& value) { SetEvent(value); return *this;}
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline TestEventPatternRequest& WithEvent(Aws::String&& value) { SetEvent(std::move(value)); return *this;}
/**
* <p>The event, in JSON format, to test against the event pattern.</p>
*/
inline TestEventPatternRequest& WithEvent(const char* value) { SetEvent(value); return *this;}
private:
Aws::String m_eventPattern;
bool m_eventPatternHasBeenSet;
Aws::String m_event;
bool m_eventHasBeenSet;
};
} // namespace Model
} // namespace CloudWatchEvents
} // namespace Aws