AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CodeGenNode.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/glue/model/CodeGenNodeArg.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Glue
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GLUE_API CodeGenNode();
37 AWS_GLUE_API CodeGenNode(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline CodeGenNode& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline CodeGenNode& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline CodeGenNode& WithId(const char* value) { SetId(value); return *this;}
55
57
60 inline const Aws::String& GetNodeType() const{ return m_nodeType; }
61 inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; }
62 inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; }
63 inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); }
64 inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); }
65 inline CodeGenNode& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;}
66 inline CodeGenNode& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;}
67 inline CodeGenNode& WithNodeType(const char* value) { SetNodeType(value); return *this;}
69
71
74 inline const Aws::Vector<CodeGenNodeArg>& GetArgs() const{ return m_args; }
75 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
76 inline void SetArgs(const Aws::Vector<CodeGenNodeArg>& value) { m_argsHasBeenSet = true; m_args = value; }
77 inline void SetArgs(Aws::Vector<CodeGenNodeArg>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
78 inline CodeGenNode& WithArgs(const Aws::Vector<CodeGenNodeArg>& value) { SetArgs(value); return *this;}
79 inline CodeGenNode& WithArgs(Aws::Vector<CodeGenNodeArg>&& value) { SetArgs(std::move(value)); return *this;}
80 inline CodeGenNode& AddArgs(const CodeGenNodeArg& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
81 inline CodeGenNode& AddArgs(CodeGenNodeArg&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
83
85
88 inline int GetLineNumber() const{ return m_lineNumber; }
89 inline bool LineNumberHasBeenSet() const { return m_lineNumberHasBeenSet; }
90 inline void SetLineNumber(int value) { m_lineNumberHasBeenSet = true; m_lineNumber = value; }
91 inline CodeGenNode& WithLineNumber(int value) { SetLineNumber(value); return *this;}
93 private:
94
95 Aws::String m_id;
96 bool m_idHasBeenSet = false;
97
98 Aws::String m_nodeType;
99 bool m_nodeTypeHasBeenSet = false;
100
102 bool m_argsHasBeenSet = false;
103
104 int m_lineNumber;
105 bool m_lineNumberHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Glue
110} // namespace Aws
const Aws::String & GetId() const
Definition CodeGenNode.h:46
void SetArgs(const Aws::Vector< CodeGenNodeArg > &value)
Definition CodeGenNode.h:76
void SetLineNumber(int value)
Definition CodeGenNode.h:90
AWS_GLUE_API CodeGenNode & operator=(Aws::Utils::Json::JsonView jsonValue)
CodeGenNode & WithId(const char *value)
Definition CodeGenNode.h:53
CodeGenNode & WithNodeType(Aws::String &&value)
Definition CodeGenNode.h:66
void SetNodeType(Aws::String &&value)
Definition CodeGenNode.h:63
void SetId(const Aws::String &value)
Definition CodeGenNode.h:48
void SetNodeType(const char *value)
Definition CodeGenNode.h:64
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
CodeGenNode & WithId(Aws::String &&value)
Definition CodeGenNode.h:52
CodeGenNode & WithId(const Aws::String &value)
Definition CodeGenNode.h:51
void SetId(const char *value)
Definition CodeGenNode.h:50
const Aws::Vector< CodeGenNodeArg > & GetArgs() const
Definition CodeGenNode.h:74
CodeGenNode & AddArgs(const CodeGenNodeArg &value)
Definition CodeGenNode.h:80
void SetArgs(Aws::Vector< CodeGenNodeArg > &&value)
Definition CodeGenNode.h:77
CodeGenNode & WithArgs(const Aws::Vector< CodeGenNodeArg > &value)
Definition CodeGenNode.h:78
AWS_GLUE_API CodeGenNode(Aws::Utils::Json::JsonView jsonValue)
CodeGenNode & WithNodeType(const Aws::String &value)
Definition CodeGenNode.h:65
CodeGenNode & AddArgs(CodeGenNodeArg &&value)
Definition CodeGenNode.h:81
void SetNodeType(const Aws::String &value)
Definition CodeGenNode.h:62
CodeGenNode & WithLineNumber(int value)
Definition CodeGenNode.h:91
void SetId(Aws::String &&value)
Definition CodeGenNode.h:49
CodeGenNode & WithArgs(Aws::Vector< CodeGenNodeArg > &&value)
Definition CodeGenNode.h:79
CodeGenNode & WithNodeType(const char *value)
Definition CodeGenNode.h:67
const Aws::String & GetNodeType() const
Definition CodeGenNode.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue