AWS SDK for C++  1.9.14
AWS SDK for C++
DestinationInfo.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetId() const{ return m_id; }
44 
48  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 
53  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
54 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
59 
63  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 
68  inline DestinationInfo& WithId(const Aws::String& value) { SetId(value); return *this;}
69 
73  inline DestinationInfo& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
74 
78  inline DestinationInfo& WithId(const char* value) { SetId(value); return *this;}
79 
80 
84  inline const Aws::String& GetService() const{ return m_service; }
85 
89  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
90 
94  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
95 
99  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
100 
104  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
105 
109  inline DestinationInfo& WithService(const Aws::String& value) { SetService(value); return *this;}
110 
114  inline DestinationInfo& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
115 
119  inline DestinationInfo& WithService(const char* value) { SetService(value); return *this;}
120 
121  private:
122 
123  Aws::String m_id;
124  bool m_idHasBeenSet;
125 
126  Aws::String m_service;
127  bool m_serviceHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace Lightsail
132 } // namespace Aws
Aws::Lightsail::Model::DestinationInfo::GetService
const Aws::String & GetService() const
Definition: DestinationInfo.h:84
Aws::Lightsail::Model::DestinationInfo::DestinationInfo
DestinationInfo(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::DestinationInfo::WithService
DestinationInfo & WithService(const char *value)
Definition: DestinationInfo.h:119
Aws::Lightsail::Model::DestinationInfo::WithId
DestinationInfo & WithId(const Aws::String &value)
Definition: DestinationInfo.h:68
Aws::Lightsail::Model::DestinationInfo::SetId
void SetId(const char *value)
Definition: DestinationInfo.h:63
Aws::Lightsail::Model::DestinationInfo::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: DestinationInfo.h:89
Aws::Lightsail::Model::DestinationInfo::WithService
DestinationInfo & WithService(Aws::String &&value)
Definition: DestinationInfo.h:114
Aws::Lightsail::Model::DestinationInfo::SetId
void SetId(const Aws::String &value)
Definition: DestinationInfo.h:53
Aws::Lightsail::Model::DestinationInfo::SetId
void SetId(Aws::String &&value)
Definition: DestinationInfo.h:58
Aws::Lightsail::Model::DestinationInfo::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::DestinationInfo::GetId
const Aws::String & GetId() const
Definition: DestinationInfo.h:43
Aws::Lightsail::Model::DestinationInfo::SetService
void SetService(const Aws::String &value)
Definition: DestinationInfo.h:94
Aws::Lightsail::Model::DestinationInfo::SetService
void SetService(Aws::String &&value)
Definition: DestinationInfo.h:99
Aws::Lightsail::Model::DestinationInfo::WithService
DestinationInfo & WithService(const Aws::String &value)
Definition: DestinationInfo.h:109
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::DestinationInfo::WithId
DestinationInfo & WithId(Aws::String &&value)
Definition: DestinationInfo.h:73
Aws::Lightsail::Model::DestinationInfo::IdHasBeenSet
bool IdHasBeenSet() const
Definition: DestinationInfo.h:48
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DestinationInfo::operator=
DestinationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::DestinationInfo::WithId
DestinationInfo & WithId(const char *value)
Definition: DestinationInfo.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DestinationInfo::SetService
void SetService(const char *value)
Definition: DestinationInfo.h:104
Aws::Lightsail::Model::DestinationInfo::DestinationInfo
DestinationInfo()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DestinationInfo
Definition: DestinationInfo.h:32