AWS SDK for C++  1.9.104
AWS SDK for C++
ServiceAlreadyExists.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 ServiceDiscovery
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline ServiceAlreadyExists& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline ServiceAlreadyExists& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline ServiceAlreadyExists& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
69  inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
70 
74  inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
75 
79  inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
80 
84  inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
85 
89  inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
90 
94  inline ServiceAlreadyExists& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
95 
99  inline ServiceAlreadyExists& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
100 
104  inline ServiceAlreadyExists& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
105 
106 
110  inline const Aws::String& GetServiceId() const{ return m_serviceId; }
111 
115  inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
116 
120  inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
121 
125  inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
126 
130  inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
131 
135  inline ServiceAlreadyExists& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
136 
140  inline ServiceAlreadyExists& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
141 
145  inline ServiceAlreadyExists& WithServiceId(const char* value) { SetServiceId(value); return *this;}
146 
147  private:
148 
149  Aws::String m_message;
150  bool m_messageHasBeenSet;
151 
152  Aws::String m_creatorRequestId;
153  bool m_creatorRequestIdHasBeenSet;
154 
155  Aws::String m_serviceId;
156  bool m_serviceIdHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace ServiceDiscovery
161 } // namespace Aws
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::ServiceAlreadyExists
ServiceAlreadyExists(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithCreatorRequestId
ServiceAlreadyExists & WithCreatorRequestId(Aws::String &&value)
Definition: ServiceAlreadyExists.h:99
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: ServiceAlreadyExists.h:84
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::operator=
ServiceAlreadyExists & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetServiceId
void SetServiceId(const Aws::String &value)
Definition: ServiceAlreadyExists.h:120
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithMessage
ServiceAlreadyExists & WithMessage(const char *value)
Definition: ServiceAlreadyExists.h:63
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetMessage
void SetMessage(Aws::String &&value)
Definition: ServiceAlreadyExists.h:51
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetServiceId
void SetServiceId(Aws::String &&value)
Definition: ServiceAlreadyExists.h:125
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ServiceAlreadyExists.h:45
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: ServiceAlreadyExists.h:89
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: ServiceAlreadyExists.h:69
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::GetServiceId
const Aws::String & GetServiceId() const
Definition: ServiceAlreadyExists.h:110
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::ServiceAlreadyExists
ServiceAlreadyExists()
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::ServiceIdHasBeenSet
bool ServiceIdHasBeenSet() const
Definition: ServiceAlreadyExists.h:115
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::GetMessage
const Aws::String & GetMessage() const
Definition: ServiceAlreadyExists.h:42
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithServiceId
ServiceAlreadyExists & WithServiceId(Aws::String &&value)
Definition: ServiceAlreadyExists.h:140
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithMessage
ServiceAlreadyExists & WithMessage(const Aws::String &value)
Definition: ServiceAlreadyExists.h:57
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::ServiceAlreadyExists
Definition: ServiceAlreadyExists.h:33
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetMessage
void SetMessage(const char *value)
Definition: ServiceAlreadyExists.h:54
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithCreatorRequestId
ServiceAlreadyExists & WithCreatorRequestId(const Aws::String &value)
Definition: ServiceAlreadyExists.h:94
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: ServiceAlreadyExists.h:74
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithMessage
ServiceAlreadyExists & WithMessage(Aws::String &&value)
Definition: ServiceAlreadyExists.h:60
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetMessage
void SetMessage(const Aws::String &value)
Definition: ServiceAlreadyExists.h:48
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithServiceId
ServiceAlreadyExists & WithServiceId(const Aws::String &value)
Definition: ServiceAlreadyExists.h:135
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithServiceId
ServiceAlreadyExists & WithServiceId(const char *value)
Definition: ServiceAlreadyExists.h:145
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: ServiceAlreadyExists.h:79
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::WithCreatorRequestId
ServiceAlreadyExists & WithCreatorRequestId(const char *value)
Definition: ServiceAlreadyExists.h:104
Aws::ServiceDiscovery::Model::ServiceAlreadyExists::SetServiceId
void SetServiceId(const char *value)
Definition: ServiceAlreadyExists.h:130