AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ResourceRecord.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/RecordType.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 ACM {
21namespace Model {
22
31 public:
32 AWS_ACM_API ResourceRecord() = default;
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 ResourceRecord& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline RecordType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(RecordType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
77 inline const Aws::String& GetValue() const { return m_value; }
78 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
79 template <typename ValueT = Aws::String>
80 void SetValue(ValueT&& value) {
81 m_valueHasBeenSet = true;
82 m_value = std::forward<ValueT>(value);
83 }
84 template <typename ValueT = Aws::String>
85 ResourceRecord& WithValue(ValueT&& value) {
86 SetValue(std::forward<ValueT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_name;
92
94
95 Aws::String m_value;
96 bool m_nameHasBeenSet = false;
97 bool m_typeHasBeenSet = false;
98 bool m_valueHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ACM
103} // namespace Aws
AWS_ACM_API ResourceRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(RecordType value)
AWS_ACM_API ResourceRecord(Aws::Utils::Json::JsonView jsonValue)
void SetValue(ValueT &&value)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceRecord & WithValue(ValueT &&value)
ResourceRecord & WithName(NameT &&value)
const Aws::String & GetValue() const
const Aws::String & GetName() const
ResourceRecord & WithType(RecordType value)
AWS_ACM_API ResourceRecord()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue