AWS SDK for C++  1.9.158
AWS SDK for C++
DisassociateApprovedOriginRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Connect
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "DisassociateApprovedOrigin"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
45  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
46 
51  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
52 
57  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
58 
63  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
64 
69  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
70 
75  inline DisassociateApprovedOriginRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
76 
81  inline DisassociateApprovedOriginRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
82 
87  inline DisassociateApprovedOriginRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
88 
89 
93  inline const Aws::String& GetOrigin() const{ return m_origin; }
94 
98  inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
99 
103  inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; }
104 
108  inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
109 
113  inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); }
114 
118  inline DisassociateApprovedOriginRequest& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;}
119 
123  inline DisassociateApprovedOriginRequest& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;}
124 
128  inline DisassociateApprovedOriginRequest& WithOrigin(const char* value) { SetOrigin(value); return *this;}
129 
130  private:
131 
132  Aws::String m_instanceId;
133  bool m_instanceIdHasBeenSet;
134 
135  Aws::String m_origin;
136  bool m_originHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace Connect
141 } // namespace Aws
Aws::Connect::Model::DisassociateApprovedOriginRequest::SetOrigin
void SetOrigin(const char *value)
Definition: DisassociateApprovedOriginRequest.h:113
Aws::Connect::Model::DisassociateApprovedOriginRequest::DisassociateApprovedOriginRequest
DisassociateApprovedOriginRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::Connect::Model::DisassociateApprovedOriginRequest::WithOrigin
DisassociateApprovedOriginRequest & WithOrigin(const char *value)
Definition: DisassociateApprovedOriginRequest.h:128
Aws::Connect::Model::DisassociateApprovedOriginRequest::WithInstanceId
DisassociateApprovedOriginRequest & WithInstanceId(Aws::String &&value)
Definition: DisassociateApprovedOriginRequest.h:81
Aws::Connect::Model::DisassociateApprovedOriginRequest::GetOrigin
const Aws::String & GetOrigin() const
Definition: DisassociateApprovedOriginRequest.h:93
Aws::Connect::Model::DisassociateApprovedOriginRequest::OriginHasBeenSet
bool OriginHasBeenSet() const
Definition: DisassociateApprovedOriginRequest.h:98
Aws::Connect::Model::DisassociateApprovedOriginRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::DisassociateApprovedOriginRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: DisassociateApprovedOriginRequest.h:69
Aws::Connect::Model::DisassociateApprovedOriginRequest::WithOrigin
DisassociateApprovedOriginRequest & WithOrigin(Aws::String &&value)
Definition: DisassociateApprovedOriginRequest.h:123
Aws::Connect::Model::DisassociateApprovedOriginRequest::WithOrigin
DisassociateApprovedOriginRequest & WithOrigin(const Aws::String &value)
Definition: DisassociateApprovedOriginRequest.h:118
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::DisassociateApprovedOriginRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: DisassociateApprovedOriginRequest.h:51
AWSString.h
Aws::Connect::Model::DisassociateApprovedOriginRequest::WithInstanceId
DisassociateApprovedOriginRequest & WithInstanceId(const char *value)
Definition: DisassociateApprovedOriginRequest.h:87
Aws::Connect::Model::DisassociateApprovedOriginRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: DisassociateApprovedOriginRequest.h:63
Aws::Connect::Model::DisassociateApprovedOriginRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: DisassociateApprovedOriginRequest.h:57
Aws::Connect::Model::DisassociateApprovedOriginRequest::SetOrigin
void SetOrigin(const Aws::String &value)
Definition: DisassociateApprovedOriginRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::DisassociateApprovedOriginRequest::SetOrigin
void SetOrigin(Aws::String &&value)
Definition: DisassociateApprovedOriginRequest.h:108
Aws::Connect::Model::DisassociateApprovedOriginRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: DisassociateApprovedOriginRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::DisassociateApprovedOriginRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::DisassociateApprovedOriginRequest::WithInstanceId
DisassociateApprovedOriginRequest & WithInstanceId(const Aws::String &value)
Definition: DisassociateApprovedOriginRequest.h:75
Aws::Connect::Model::DisassociateApprovedOriginRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateApprovedOriginRequest.h:34
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::DisassociateApprovedOriginRequest
Definition: DisassociateApprovedOriginRequest.h:26