AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DomainEntry.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_LIGHTSAIL_API DomainEntry();
35 AWS_LIGHTSAIL_API DomainEntry(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LIGHTSAIL_API DomainEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetId() const{ return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
47 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
48 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
49 inline DomainEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
50 inline DomainEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
51 inline DomainEntry& WithId(const char* value) { SetId(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline DomainEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline DomainEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline DomainEntry& WithName(const char* value) { SetName(value); return *this;}
67
69
81 inline const Aws::String& GetTarget() const{ return m_target; }
82 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
83 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
84 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
85 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
86 inline DomainEntry& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
87 inline DomainEntry& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
88 inline DomainEntry& WithTarget(const char* value) { SetTarget(value); return *this;}
90
92
100 inline bool GetIsAlias() const{ return m_isAlias; }
101 inline bool IsAliasHasBeenSet() const { return m_isAliasHasBeenSet; }
102 inline void SetIsAlias(bool value) { m_isAliasHasBeenSet = true; m_isAlias = value; }
103 inline DomainEntry& WithIsAlias(bool value) { SetIsAlias(value); return *this;}
105
107
117 inline const Aws::String& GetType() const{ return m_type; }
118 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
119 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
120 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
121 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
122 inline DomainEntry& WithType(const Aws::String& value) { SetType(value); return *this;}
123 inline DomainEntry& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
124 inline DomainEntry& WithType(const char* value) { SetType(value); return *this;}
126 private:
127
128 Aws::String m_id;
129 bool m_idHasBeenSet = false;
130
131 Aws::String m_name;
132 bool m_nameHasBeenSet = false;
133
134 Aws::String m_target;
135 bool m_targetHasBeenSet = false;
136
137 bool m_isAlias;
138 bool m_isAliasHasBeenSet = false;
139
140 Aws::String m_type;
141 bool m_typeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Lightsail
146} // namespace Aws
Definition DomainEntry.h:32
bool TargetHasBeenSet() const
Definition DomainEntry.h:82
bool TypeHasBeenSet() const
DomainEntry & WithType(Aws::String &&value)
DomainEntry & WithType(const char *value)
void SetId(Aws::String &&value)
Definition DomainEntry.h:47
DomainEntry & WithName(const char *value)
Definition DomainEntry.h:65
void SetTarget(Aws::String &&value)
Definition DomainEntry.h:84
DomainEntry & WithTarget(const Aws::String &value)
Definition DomainEntry.h:86
const Aws::String & GetName() const
Definition DomainEntry.h:58
void SetName(const Aws::String &value)
Definition DomainEntry.h:60
void SetName(const char *value)
Definition DomainEntry.h:62
DomainEntry & WithName(Aws::String &&value)
Definition DomainEntry.h:64
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const char *value)
DomainEntry & WithType(const Aws::String &value)
void SetIsAlias(bool value)
AWS_LIGHTSAIL_API DomainEntry()
DomainEntry & WithId(const char *value)
Definition DomainEntry.h:51
void SetName(Aws::String &&value)
Definition DomainEntry.h:61
const Aws::String & GetType() const
DomainEntry & WithId(const Aws::String &value)
Definition DomainEntry.h:49
void SetType(const Aws::String &value)
bool IsAliasHasBeenSet() const
void SetTarget(const char *value)
Definition DomainEntry.h:85
const Aws::String & GetTarget() const
Definition DomainEntry.h:81
DomainEntry & WithIsAlias(bool value)
const Aws::String & GetId() const
Definition DomainEntry.h:44
DomainEntry & WithTarget(const char *value)
Definition DomainEntry.h:88
DomainEntry & WithTarget(Aws::String &&value)
Definition DomainEntry.h:87
bool NameHasBeenSet() const
Definition DomainEntry.h:59
AWS_LIGHTSAIL_API DomainEntry(Aws::Utils::Json::JsonView jsonValue)
DomainEntry & WithId(Aws::String &&value)
Definition DomainEntry.h:50
bool GetIsAlias() const
AWS_LIGHTSAIL_API DomainEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
Definition DomainEntry.h:46
bool IdHasBeenSet() const
Definition DomainEntry.h:45
void SetTarget(const Aws::String &value)
Definition DomainEntry.h:83
void SetType(Aws::String &&value)
DomainEntry & WithName(const Aws::String &value)
Definition DomainEntry.h:63
void SetId(const char *value)
Definition DomainEntry.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue