AWS SDK for C++  1.9.105
AWS SDK for C++
DuplicateRequest.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 
32  {
33  public:
38 
39 
40 
41  inline const Aws::String& GetMessage() const{ return m_message; }
42 
43 
44  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 
46 
47  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
48 
49 
50  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 
52 
53  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
54 
55 
56  inline DuplicateRequest& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
57 
58 
59  inline DuplicateRequest& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
60 
61 
62  inline DuplicateRequest& WithMessage(const char* value) { SetMessage(value); return *this;}
63 
64 
68  inline const Aws::String& GetDuplicateOperationId() const{ return m_duplicateOperationId; }
69 
73  inline bool DuplicateOperationIdHasBeenSet() const { return m_duplicateOperationIdHasBeenSet; }
74 
78  inline void SetDuplicateOperationId(const Aws::String& value) { m_duplicateOperationIdHasBeenSet = true; m_duplicateOperationId = value; }
79 
83  inline void SetDuplicateOperationId(Aws::String&& value) { m_duplicateOperationIdHasBeenSet = true; m_duplicateOperationId = std::move(value); }
84 
88  inline void SetDuplicateOperationId(const char* value) { m_duplicateOperationIdHasBeenSet = true; m_duplicateOperationId.assign(value); }
89 
93  inline DuplicateRequest& WithDuplicateOperationId(const Aws::String& value) { SetDuplicateOperationId(value); return *this;}
94 
98  inline DuplicateRequest& WithDuplicateOperationId(Aws::String&& value) { SetDuplicateOperationId(std::move(value)); return *this;}
99 
103  inline DuplicateRequest& WithDuplicateOperationId(const char* value) { SetDuplicateOperationId(value); return *this;}
104 
105  private:
106 
107  Aws::String m_message;
108  bool m_messageHasBeenSet;
109 
110  Aws::String m_duplicateOperationId;
111  bool m_duplicateOperationIdHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace ServiceDiscovery
116 } // namespace Aws
Aws::ServiceDiscovery::Model::DuplicateRequest::WithDuplicateOperationId
DuplicateRequest & WithDuplicateOperationId(const Aws::String &value)
Definition: DuplicateRequest.h:93
Aws::ServiceDiscovery::Model::DuplicateRequest::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: DuplicateRequest.h:44
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::DuplicateRequest::WithMessage
DuplicateRequest & WithMessage(Aws::String &&value)
Definition: DuplicateRequest.h:59
Aws::ServiceDiscovery::Model::DuplicateRequest::DuplicateRequest
DuplicateRequest()
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::DuplicateRequest::SetMessage
void SetMessage(const Aws::String &value)
Definition: DuplicateRequest.h:47
Aws::ServiceDiscovery::Model::DuplicateRequest::WithDuplicateOperationId
DuplicateRequest & WithDuplicateOperationId(Aws::String &&value)
Definition: DuplicateRequest.h:98
Aws::ServiceDiscovery::Model::DuplicateRequest
Definition: DuplicateRequest.h:32
Aws::ServiceDiscovery::Model::DuplicateRequest::operator=
DuplicateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::DuplicateRequest::SetDuplicateOperationId
void SetDuplicateOperationId(const char *value)
Definition: DuplicateRequest.h:88
Aws::ServiceDiscovery::Model::DuplicateRequest::WithMessage
DuplicateRequest & WithMessage(const Aws::String &value)
Definition: DuplicateRequest.h:56
Aws::ServiceDiscovery::Model::DuplicateRequest::WithDuplicateOperationId
DuplicateRequest & WithDuplicateOperationId(const char *value)
Definition: DuplicateRequest.h:103
Aws::ServiceDiscovery::Model::DuplicateRequest::SetDuplicateOperationId
void SetDuplicateOperationId(Aws::String &&value)
Definition: DuplicateRequest.h:83
Aws::ServiceDiscovery::Model::DuplicateRequest::DuplicateOperationIdHasBeenSet
bool DuplicateOperationIdHasBeenSet() const
Definition: DuplicateRequest.h:73
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::DuplicateRequest::SetMessage
void SetMessage(Aws::String &&value)
Definition: DuplicateRequest.h:50
Aws::ServiceDiscovery::Model::DuplicateRequest::GetDuplicateOperationId
const Aws::String & GetDuplicateOperationId() const
Definition: DuplicateRequest.h:68
Aws::ServiceDiscovery::Model::DuplicateRequest::DuplicateRequest
DuplicateRequest(Aws::Utils::Json::JsonView jsonValue)
Aws::ServiceDiscovery::Model::DuplicateRequest::GetMessage
const Aws::String & GetMessage() const
Definition: DuplicateRequest.h:41
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::DuplicateRequest::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::DuplicateRequest::WithMessage
DuplicateRequest & WithMessage(const char *value)
Definition: DuplicateRequest.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::DuplicateRequest::SetDuplicateOperationId
void SetDuplicateOperationId(const Aws::String &value)
Definition: DuplicateRequest.h:78
Aws::ServiceDiscovery::Model::DuplicateRequest::SetMessage
void SetMessage(const char *value)
Definition: DuplicateRequest.h:53