AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppConfig {
21namespace Model {
22
35class Validator {
36 public:
37 AWS_APPCONFIG_API Validator() = default;
38 AWS_APPCONFIG_API Validator(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPCONFIG_API Validator& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline ValidatorType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(ValidatorType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
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) {
68 m_contentHasBeenSet = true;
69 m_content = std::forward<ContentT>(value);
70 }
71 template <typename ContentT = Aws::String>
72 Validator& WithContent(ContentT&& value) {
73 SetContent(std::forward<ContentT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_content;
81 bool m_typeHasBeenSet = false;
82 bool m_contentHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace AppConfig
87} // 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:47
AWS_APPCONFIG_API Validator()=default
void SetType(ValidatorType value)
Definition Validator.h:49
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
Validator & WithType(ValidatorType value)
Definition Validator.h:53
AWS_APPCONFIG_API Validator & operator=(Aws::Utils::Json::JsonView jsonValue)
Validator & WithContent(ContentT &&value)
Definition Validator.h:72
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