AWS SDK for C++  1.9.160
AWS SDK for C++
AssociateApprovedOriginRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Connect
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AssociateApprovedOrigin"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
40 
45  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 
51  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
57  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
58 
63  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 
69  inline AssociateApprovedOriginRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
70 
75  inline AssociateApprovedOriginRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 
81  inline AssociateApprovedOriginRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
83 
87  inline const Aws::String& GetOrigin() const{ return m_origin; }
88 
92  inline bool OriginHasBeenSet() const { return m_originHasBeenSet; }
93 
97  inline void SetOrigin(const Aws::String& value) { m_originHasBeenSet = true; m_origin = value; }
98 
102  inline void SetOrigin(Aws::String&& value) { m_originHasBeenSet = true; m_origin = std::move(value); }
103 
107  inline void SetOrigin(const char* value) { m_originHasBeenSet = true; m_origin.assign(value); }
108 
112  inline AssociateApprovedOriginRequest& WithOrigin(const Aws::String& value) { SetOrigin(value); return *this;}
113 
117  inline AssociateApprovedOriginRequest& WithOrigin(Aws::String&& value) { SetOrigin(std::move(value)); return *this;}
118 
122  inline AssociateApprovedOriginRequest& WithOrigin(const char* value) { SetOrigin(value); return *this;}
123 
124  private:
125 
126  Aws::String m_instanceId;
127  bool m_instanceIdHasBeenSet;
128 
129  Aws::String m_origin;
130  bool m_originHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace Connect
135 } // namespace Aws
Aws::Connect::Model::AssociateApprovedOriginRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: AssociateApprovedOriginRequest.h:45
Aws::Connect::Model::AssociateApprovedOriginRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: AssociateApprovedOriginRequest.h:51
Aws::Connect::Model::AssociateApprovedOriginRequest::SetOrigin
void SetOrigin(Aws::String &&value)
Definition: AssociateApprovedOriginRequest.h:102
Aws::Connect::Model::AssociateApprovedOriginRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::AssociateApprovedOriginRequest::GetOrigin
const Aws::String & GetOrigin() const
Definition: AssociateApprovedOriginRequest.h:87
Aws::Connect::Model::AssociateApprovedOriginRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: AssociateApprovedOriginRequest.h:57
Aws::Connect::Model::AssociateApprovedOriginRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateApprovedOriginRequest.h:30
Aws::Connect::Model::AssociateApprovedOriginRequest
Definition: AssociateApprovedOriginRequest.h:22
Aws::Connect::Model::AssociateApprovedOriginRequest::WithInstanceId
AssociateApprovedOriginRequest & WithInstanceId(Aws::String &&value)
Definition: AssociateApprovedOriginRequest.h:75
Aws::Connect::Model::AssociateApprovedOriginRequest::WithOrigin
AssociateApprovedOriginRequest & WithOrigin(Aws::String &&value)
Definition: AssociateApprovedOriginRequest.h:117
Aws::Connect::Model::AssociateApprovedOriginRequest::OriginHasBeenSet
bool OriginHasBeenSet() const
Definition: AssociateApprovedOriginRequest.h:92
Aws::Connect::Model::AssociateApprovedOriginRequest::WithOrigin
AssociateApprovedOriginRequest & WithOrigin(const char *value)
Definition: AssociateApprovedOriginRequest.h:122
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::AssociateApprovedOriginRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: AssociateApprovedOriginRequest.h:39
AWSString.h
Aws::Connect::Model::AssociateApprovedOriginRequest::SetOrigin
void SetOrigin(const char *value)
Definition: AssociateApprovedOriginRequest.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::AssociateApprovedOriginRequest::WithInstanceId
AssociateApprovedOriginRequest & WithInstanceId(const char *value)
Definition: AssociateApprovedOriginRequest.h:81
Aws::Connect::Model::AssociateApprovedOriginRequest::WithOrigin
AssociateApprovedOriginRequest & WithOrigin(const Aws::String &value)
Definition: AssociateApprovedOriginRequest.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::AssociateApprovedOriginRequest::WithInstanceId
AssociateApprovedOriginRequest & WithInstanceId(const Aws::String &value)
Definition: AssociateApprovedOriginRequest.h:69
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::AssociateApprovedOriginRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: AssociateApprovedOriginRequest.h:63
Aws::Connect::Model::AssociateApprovedOriginRequest::AssociateApprovedOriginRequest
AssociateApprovedOriginRequest()
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::AssociateApprovedOriginRequest::SetOrigin
void SetOrigin(const Aws::String &value)
Definition: AssociateApprovedOriginRequest.h:97