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,166 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/glue/Glue_EXPORTS.h>
#include <aws/glue/GlueRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/glue/model/Language.h>
#include <aws/glue/model/CodeGenNode.h>
#include <aws/glue/model/CodeGenEdge.h>
#include <utility>
namespace Aws
{
namespace Glue
{
namespace Model
{
/**
*/
class AWS_GLUE_API CreateScriptRequest : public GlueRequest
{
public:
CreateScriptRequest();
// 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 "CreateScript"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline const Aws::Vector<CodeGenNode>& GetDagNodes() const{ return m_dagNodes; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline bool DagNodesHasBeenSet() const { return m_dagNodesHasBeenSet; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline void SetDagNodes(const Aws::Vector<CodeGenNode>& value) { m_dagNodesHasBeenSet = true; m_dagNodes = value; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline void SetDagNodes(Aws::Vector<CodeGenNode>&& value) { m_dagNodesHasBeenSet = true; m_dagNodes = std::move(value); }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& WithDagNodes(const Aws::Vector<CodeGenNode>& value) { SetDagNodes(value); return *this;}
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& WithDagNodes(Aws::Vector<CodeGenNode>&& value) { SetDagNodes(std::move(value)); return *this;}
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& AddDagNodes(const CodeGenNode& value) { m_dagNodesHasBeenSet = true; m_dagNodes.push_back(value); return *this; }
/**
* <p>A list of the nodes in the DAG.</p>
*/
inline CreateScriptRequest& AddDagNodes(CodeGenNode&& value) { m_dagNodesHasBeenSet = true; m_dagNodes.push_back(std::move(value)); return *this; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline const Aws::Vector<CodeGenEdge>& GetDagEdges() const{ return m_dagEdges; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline bool DagEdgesHasBeenSet() const { return m_dagEdgesHasBeenSet; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline void SetDagEdges(const Aws::Vector<CodeGenEdge>& value) { m_dagEdgesHasBeenSet = true; m_dagEdges = value; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline void SetDagEdges(Aws::Vector<CodeGenEdge>&& value) { m_dagEdgesHasBeenSet = true; m_dagEdges = std::move(value); }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& WithDagEdges(const Aws::Vector<CodeGenEdge>& value) { SetDagEdges(value); return *this;}
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& WithDagEdges(Aws::Vector<CodeGenEdge>&& value) { SetDagEdges(std::move(value)); return *this;}
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& AddDagEdges(const CodeGenEdge& value) { m_dagEdgesHasBeenSet = true; m_dagEdges.push_back(value); return *this; }
/**
* <p>A list of the edges in the DAG.</p>
*/
inline CreateScriptRequest& AddDagEdges(CodeGenEdge&& value) { m_dagEdgesHasBeenSet = true; m_dagEdges.push_back(std::move(value)); return *this; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline const Language& GetLanguage() const{ return m_language; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); }
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline CreateScriptRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;}
/**
* <p>The programming language of the resulting code from the DAG.</p>
*/
inline CreateScriptRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;}
private:
Aws::Vector<CodeGenNode> m_dagNodes;
bool m_dagNodesHasBeenSet;
Aws::Vector<CodeGenEdge> m_dagEdges;
bool m_dagEdgesHasBeenSet;
Language m_language;
bool m_languageHasBeenSet;
};
} // namespace Model
} // namespace Glue
} // namespace Aws