AWS SDK for C++  1.9.161
AWS SDK for C++
NamespaceAlreadyExists.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 NamespaceAlreadyExists& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline NamespaceAlreadyExists& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline NamespaceAlreadyExists& 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 NamespaceAlreadyExists& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
95 
99  inline NamespaceAlreadyExists& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
100 
104  inline NamespaceAlreadyExists& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
105 
106 
110  inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
111 
115  inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
116 
120  inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
121 
125  inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
126 
130  inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
131 
135  inline NamespaceAlreadyExists& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
136 
140  inline NamespaceAlreadyExists& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
141 
145  inline NamespaceAlreadyExists& WithNamespaceId(const char* value) { SetNamespaceId(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_namespaceId;
156  bool m_namespaceIdHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace ServiceDiscovery
161 } // namespace Aws
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithCreatorRequestId
NamespaceAlreadyExists & WithCreatorRequestId(const char *value)
Definition: NamespaceAlreadyExists.h:104
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetCreatorRequestId
void SetCreatorRequestId(Aws::String &&value)
Definition: NamespaceAlreadyExists.h:84
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::CreatorRequestIdHasBeenSet
bool CreatorRequestIdHasBeenSet() const
Definition: NamespaceAlreadyExists.h:74
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetMessage
void SetMessage(const char *value)
Definition: NamespaceAlreadyExists.h:54
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::GetCreatorRequestId
const Aws::String & GetCreatorRequestId() const
Definition: NamespaceAlreadyExists.h:69
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithCreatorRequestId
NamespaceAlreadyExists & WithCreatorRequestId(Aws::String &&value)
Definition: NamespaceAlreadyExists.h:99
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithNamespaceId
NamespaceAlreadyExists & WithNamespaceId(const Aws::String &value)
Definition: NamespaceAlreadyExists.h:135
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithMessage
NamespaceAlreadyExists & WithMessage(Aws::String &&value)
Definition: NamespaceAlreadyExists.h:60
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::GetNamespaceId
const Aws::String & GetNamespaceId() const
Definition: NamespaceAlreadyExists.h:110
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetNamespaceId
void SetNamespaceId(const Aws::String &value)
Definition: NamespaceAlreadyExists.h:120
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::NamespaceAlreadyExists
NamespaceAlreadyExists(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithNamespaceId
NamespaceAlreadyExists & WithNamespaceId(Aws::String &&value)
Definition: NamespaceAlreadyExists.h:140
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetMessage
void SetMessage(Aws::String &&value)
Definition: NamespaceAlreadyExists.h:51
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::NamespaceIdHasBeenSet
bool NamespaceIdHasBeenSet() const
Definition: NamespaceAlreadyExists.h:115
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithMessage
NamespaceAlreadyExists & WithMessage(const char *value)
Definition: NamespaceAlreadyExists.h:63
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::operator=
NamespaceAlreadyExists & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithNamespaceId
NamespaceAlreadyExists & WithNamespaceId(const char *value)
Definition: NamespaceAlreadyExists.h:145
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetNamespaceId
void SetNamespaceId(Aws::String &&value)
Definition: NamespaceAlreadyExists.h:125
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: NamespaceAlreadyExists.h:45
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetCreatorRequestId
void SetCreatorRequestId(const char *value)
Definition: NamespaceAlreadyExists.h:89
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::GetMessage
const Aws::String & GetMessage() const
Definition: NamespaceAlreadyExists.h:42
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::NamespaceAlreadyExists
NamespaceAlreadyExists()
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists
Definition: NamespaceAlreadyExists.h:33
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetCreatorRequestId
void SetCreatorRequestId(const Aws::String &value)
Definition: NamespaceAlreadyExists.h:79
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetMessage
void SetMessage(const Aws::String &value)
Definition: NamespaceAlreadyExists.h:48
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::SetNamespaceId
void SetNamespaceId(const char *value)
Definition: NamespaceAlreadyExists.h:130
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithCreatorRequestId
NamespaceAlreadyExists & WithCreatorRequestId(const Aws::String &value)
Definition: NamespaceAlreadyExists.h:94
Aws::ServiceDiscovery::Model::NamespaceAlreadyExists::WithMessage
NamespaceAlreadyExists & WithMessage(const Aws::String &value)
Definition: NamespaceAlreadyExists.h:57