AWS SDK for C++  1.9.157
AWS SDK for C++
Type.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppSync
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Type();
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline Type& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline Type& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline Type& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetDescription() const{ return m_description; }
86 
90  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 
95  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
96 
100  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
101 
105  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
106 
110  inline Type& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 
115  inline Type& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 
120  inline Type& WithDescription(const char* value) { SetDescription(value); return *this;}
121 
122 
126  inline const Aws::String& GetArn() const{ return m_arn; }
127 
131  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
132 
136  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
137 
141  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
142 
146  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
147 
151  inline Type& WithArn(const Aws::String& value) { SetArn(value); return *this;}
152 
156  inline Type& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
157 
161  inline Type& WithArn(const char* value) { SetArn(value); return *this;}
162 
163 
167  inline const Aws::String& GetDefinition() const{ return m_definition; }
168 
172  inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
173 
177  inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
178 
182  inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
183 
187  inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
188 
192  inline Type& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
193 
197  inline Type& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
198 
202  inline Type& WithDefinition(const char* value) { SetDefinition(value); return *this;}
203 
204 
208  inline const TypeDefinitionFormat& GetFormat() const{ return m_format; }
209 
213  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
214 
218  inline void SetFormat(const TypeDefinitionFormat& value) { m_formatHasBeenSet = true; m_format = value; }
219 
223  inline void SetFormat(TypeDefinitionFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
224 
228  inline Type& WithFormat(const TypeDefinitionFormat& value) { SetFormat(value); return *this;}
229 
233  inline Type& WithFormat(TypeDefinitionFormat&& value) { SetFormat(std::move(value)); return *this;}
234 
235  private:
236 
237  Aws::String m_name;
238  bool m_nameHasBeenSet;
239 
240  Aws::String m_description;
241  bool m_descriptionHasBeenSet;
242 
243  Aws::String m_arn;
244  bool m_arnHasBeenSet;
245 
246  Aws::String m_definition;
247  bool m_definitionHasBeenSet;
248 
249  TypeDefinitionFormat m_format;
250  bool m_formatHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace AppSync
255 } // namespace Aws
Aws::AppSync::Model::Type::WithDescription
Type & WithDescription(Aws::String &&value)
Definition: Type.h:115
Aws::AppSync::Model::Type::DefinitionHasBeenSet
bool DefinitionHasBeenSet() const
Definition: Type.h:172
Aws::AppSync::Model::Type::Type
Type(Aws::Utils::Json::JsonView jsonValue)
Aws::AppSync::Model::Type::WithDefinition
Type & WithDefinition(Aws::String &&value)
Definition: Type.h:197
Aws::AppSync::Model::Type::WithFormat
Type & WithFormat(TypeDefinitionFormat &&value)
Definition: Type.h:233
Aws::AppSync::Model::Type::SetName
void SetName(const char *value)
Definition: Type.h:64
Aws::AppSync::Model::Type::WithName
Type & WithName(const Aws::String &value)
Definition: Type.h:69
Aws::AppSync::Model::Type::WithFormat
Type & WithFormat(const TypeDefinitionFormat &value)
Definition: Type.h:228
Aws::AppSync::Model::Type::SetDescription
void SetDescription(const Aws::String &value)
Definition: Type.h:95
Aws::AppSync::Model::Type::SetName
void SetName(const Aws::String &value)
Definition: Type.h:54
Aws::AppSync::Model::Type::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: Type.h:213
Aws::AppSync::Model::Type::GetName
const Aws::String & GetName() const
Definition: Type.h:44
Aws::AppSync::Model::Type::SetArn
void SetArn(const char *value)
Definition: Type.h:146
AppSync_EXPORTS.h
Aws::AppSync::Model::Type::SetName
void SetName(Aws::String &&value)
Definition: Type.h:59
Aws::AppSync::Model::Type::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: Type.h:131
Aws::AppSync::Model::Type::SetDefinition
void SetDefinition(const Aws::String &value)
Definition: Type.h:177
Aws::AppSync::Model::Type::WithArn
Type & WithArn(const Aws::String &value)
Definition: Type.h:151
Aws::AppSync::Model::Type::WithArn
Type & WithArn(const char *value)
Definition: Type.h:161
Aws::AppSync::Model::Type::SetDescription
void SetDescription(const char *value)
Definition: Type.h:105
Aws::AppSync::Model::Type::GetFormat
const TypeDefinitionFormat & GetFormat() const
Definition: Type.h:208
TypeDefinitionFormat.h
Aws::AppSync::Model::Type::GetDescription
const Aws::String & GetDescription() const
Definition: Type.h:85
Aws::AppSync::Model::Type::SetFormat
void SetFormat(const TypeDefinitionFormat &value)
Definition: Type.h:218
Aws::AppSync::Model::Type::SetDefinition
void SetDefinition(const char *value)
Definition: Type.h:187
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppSync::Model::Type
Definition: Type.h:33
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppSync::Model::Type::SetArn
void SetArn(const Aws::String &value)
Definition: Type.h:136
Aws::AppSync::Model::Type::Type
Type()
Aws::AppSync::Model::Type::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Type.h:90
Aws::AppSync::Model::Type::SetFormat
void SetFormat(TypeDefinitionFormat &&value)
Definition: Type.h:223
Aws::AppSync::Model::Type::WithName
Type & WithName(const char *value)
Definition: Type.h:79
Aws::AppSync::Model::Type::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Type.h:49
Aws::AppSync::Model::Type::SetDescription
void SetDescription(Aws::String &&value)
Definition: Type.h:100
Aws::AppSync::Model::TypeDefinitionFormat
TypeDefinitionFormat
Definition: TypeDefinitionFormat.h:17
Aws::AppSync::Model::Type::GetArn
const Aws::String & GetArn() const
Definition: Type.h:126
Aws::AppSync::Model::Type::WithName
Type & WithName(Aws::String &&value)
Definition: Type.h:74
Aws::AppSync::Model::Type::SetArn
void SetArn(Aws::String &&value)
Definition: Type.h:141
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AppSync::Model::Type::GetDefinition
const Aws::String & GetDefinition() const
Definition: Type.h:167
Aws::AppSync::Model::Type::operator=
Type & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API
#define AWS_APPSYNC_API
Definition: AppSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppSync::Model::Type::WithDefinition
Type & WithDefinition(const char *value)
Definition: Type.h:202
Aws::AppSync::Model::Type::SetDefinition
void SetDefinition(Aws::String &&value)
Definition: Type.h:182
Aws::AppSync::Model::Type::WithDescription
Type & WithDescription(const Aws::String &value)
Definition: Type.h:110
Aws::AppSync::Model::Type::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppSync::Model::Type::WithDescription
Type & WithDescription(const char *value)
Definition: Type.h:120
Aws::AppSync::Model::Type::WithDefinition
Type & WithDefinition(const Aws::String &value)
Definition: Type.h:192
Aws::AppSync::Model::Type::WithArn
Type & WithArn(Aws::String &&value)
Definition: Type.h:156