AWS SDK for C++  1.9.110
AWS SDK for C++
Validator.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 AppConfig
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
49  inline const ValidatorType& GetType() const{ return m_type; }
50 
55  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 
61  inline void SetType(const ValidatorType& value) { m_typeHasBeenSet = true; m_type = value; }
62 
67  inline void SetType(ValidatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
68 
73  inline Validator& WithType(const ValidatorType& value) { SetType(value); return *this;}
74 
79  inline Validator& WithType(ValidatorType&& value) { SetType(std::move(value)); return *this;}
80 
81 
86  inline const Aws::String& GetContent() const{ return m_content; }
87 
92  inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
93 
98  inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
99 
104  inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
105 
110  inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
111 
116  inline Validator& WithContent(const Aws::String& value) { SetContent(value); return *this;}
117 
122  inline Validator& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
123 
128  inline Validator& WithContent(const char* value) { SetContent(value); return *this;}
129 
130  private:
131 
132  ValidatorType m_type;
133  bool m_typeHasBeenSet;
134 
135  Aws::String m_content;
136  bool m_contentHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace AppConfig
141 } // namespace Aws
Aws::AppConfig::Model::Validator
Definition: Validator.h:37
Aws::AppConfig::Model::Validator::SetContent
void SetContent(const Aws::String &value)
Definition: Validator.h:98
Aws::AppConfig::Model::Validator::Validator
Validator(Aws::Utils::Json::JsonView jsonValue)
Aws::AppConfig::Model::Validator::WithContent
Validator & WithContent(const Aws::String &value)
Definition: Validator.h:116
Aws::AppConfig::Model::Validator::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppConfig::Model::Validator::GetContent
const Aws::String & GetContent() const
Definition: Validator.h:86
Aws::AppConfig::Model::Validator::SetContent
void SetContent(const char *value)
Definition: Validator.h:110
Aws::AppConfig::Model::Validator::WithType
Validator & WithType(const ValidatorType &value)
Definition: Validator.h:73
AppConfig_EXPORTS.h
Aws::AppConfig::Model::Validator::WithType
Validator & WithType(ValidatorType &&value)
Definition: Validator.h:79
ValidatorType.h
Aws::AppConfig::Model::Validator::WithContent
Validator & WithContent(Aws::String &&value)
Definition: Validator.h:122
Aws::AppConfig::Model::Validator::SetType
void SetType(ValidatorType &&value)
Definition: Validator.h:67
Aws::AppConfig::Model::Validator::SetContent
void SetContent(Aws::String &&value)
Definition: Validator.h:104
Aws::AppConfig::Model::Validator::WithContent
Validator & WithContent(const char *value)
Definition: Validator.h:128
Aws::AppConfig::Model::Validator::Validator
Validator()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppConfig::Model::Validator::SetType
void SetType(const ValidatorType &value)
Definition: Validator.h:61
Aws::AppConfig::Model::Validator::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Validator.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::AppConfig::Model::Validator::GetType
const ValidatorType & GetType() const
Definition: Validator.h:49
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_APPCONFIG_API
#define AWS_APPCONFIG_API
Definition: AppConfig_EXPORTS.h:28
Aws::AppConfig::Model::ValidatorType
ValidatorType
Definition: ValidatorType.h:17
Aws::AppConfig::Model::Validator::ContentHasBeenSet
bool ContentHasBeenSet() const
Definition: Validator.h:92
Aws::AppConfig::Model::Validator::operator=
Validator & operator=(Aws::Utils::Json::JsonView jsonValue)