AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Validator.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/ValidatorType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppConfig
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_APPCONFIG_API Validator();
43 AWS_APPCONFIG_API Validator(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPCONFIG_API Validator& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const ValidatorType& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const ValidatorType& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(ValidatorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline Validator& WithType(const ValidatorType& value) { SetType(value); return *this;}
58 inline Validator& WithType(ValidatorType&& value) { SetType(std::move(value)); return *this;}
60
62
66 inline const Aws::String& GetContent() const{ return m_content; }
67 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
68 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
69 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
70 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
71 inline Validator& WithContent(const Aws::String& value) { SetContent(value); return *this;}
72 inline Validator& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
73 inline Validator& WithContent(const char* value) { SetContent(value); return *this;}
75 private:
76
77 ValidatorType m_type;
78 bool m_typeHasBeenSet = false;
79
80 Aws::String m_content;
81 bool m_contentHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace AppConfig
86} // namespace Aws
AWS_APPCONFIG_API Validator(Aws::Utils::Json::JsonView jsonValue)
void SetContent(const char *value)
Definition Validator.h:70
void SetType(const ValidatorType &value)
Definition Validator.h:55
Validator & WithContent(const char *value)
Definition Validator.h:73
Validator & WithType(ValidatorType &&value)
Definition Validator.h:58
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(ValidatorType &&value)
Definition Validator.h:56
const ValidatorType & GetType() const
Definition Validator.h:53
AWS_APPCONFIG_API Validator & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContent(Aws::String &&value)
Definition Validator.h:69
void SetContent(const Aws::String &value)
Definition Validator.h:68
Validator & WithContent(const Aws::String &value)
Definition Validator.h:71
const Aws::String & GetContent() const
Definition Validator.h:66
AWS_APPCONFIG_API Validator()
Validator & WithContent(Aws::String &&value)
Definition Validator.h:72
Validator & WithType(const ValidatorType &value)
Definition Validator.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue