AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 ValidatorType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(ValidatorType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline Validator& WithType(ValidatorType value) { SetType(value); return *this;}
58
60
64 inline const Aws::String& GetContent() const { return m_content; }
65 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
66 template<typename ContentT = Aws::String>
67 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
68 template<typename ContentT = Aws::String>
69 Validator& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
71 private:
72
74 bool m_typeHasBeenSet = false;
75
76 Aws::String m_content;
77 bool m_contentHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AppConfig
82} // namespace Aws
void SetContent(ContentT &&value)
Definition Validator.h:67
AWS_APPCONFIG_API Validator(Aws::Utils::Json::JsonView jsonValue)
ValidatorType GetType() const
Definition Validator.h:53
AWS_APPCONFIG_API Validator()=default
void SetType(ValidatorType value)
Definition Validator.h:55
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
Validator & WithType(ValidatorType value)
Definition Validator.h:56
AWS_APPCONFIG_API Validator & operator=(Aws::Utils::Json::JsonView jsonValue)
Validator & WithContent(ContentT &&value)
Definition Validator.h:69
const Aws::String & GetContent() const
Definition Validator.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue