AWS SDK for C++  1.9.131
AWS SDK for C++
UpdateInstanceAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateInstanceAttribute"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
41 
46  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
47 
52  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
53 
58  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
59 
64  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
65 
70  inline UpdateInstanceAttributeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
71 
76  inline UpdateInstanceAttributeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
77 
82  inline UpdateInstanceAttributeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
83 
84 
90  inline const InstanceAttributeType& GetAttributeType() const{ return m_attributeType; }
91 
97  inline bool AttributeTypeHasBeenSet() const { return m_attributeTypeHasBeenSet; }
98 
104  inline void SetAttributeType(const InstanceAttributeType& value) { m_attributeTypeHasBeenSet = true; m_attributeType = value; }
105 
111  inline void SetAttributeType(InstanceAttributeType&& value) { m_attributeTypeHasBeenSet = true; m_attributeType = std::move(value); }
112 
118  inline UpdateInstanceAttributeRequest& WithAttributeType(const InstanceAttributeType& value) { SetAttributeType(value); return *this;}
119 
125  inline UpdateInstanceAttributeRequest& WithAttributeType(InstanceAttributeType&& value) { SetAttributeType(std::move(value)); return *this;}
126 
127 
131  inline const Aws::String& GetValue() const{ return m_value; }
132 
136  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
137 
141  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
142 
146  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
147 
151  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
152 
156  inline UpdateInstanceAttributeRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
157 
161  inline UpdateInstanceAttributeRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
162 
166  inline UpdateInstanceAttributeRequest& WithValue(const char* value) { SetValue(value); return *this;}
167 
168  private:
169 
170  Aws::String m_instanceId;
171  bool m_instanceIdHasBeenSet;
172 
173  InstanceAttributeType m_attributeType;
174  bool m_attributeTypeHasBeenSet;
175 
176  Aws::String m_value;
177  bool m_valueHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace Connect
182 } // namespace Aws
Aws::Connect::Model::UpdateInstanceAttributeRequest
Definition: UpdateInstanceAttributeRequest.h:23
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateInstanceAttributeRequest.h:58
Aws::Connect::Model::UpdateInstanceAttributeRequest::GetAttributeType
const InstanceAttributeType & GetAttributeType() const
Definition: UpdateInstanceAttributeRequest.h:90
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithValue
UpdateInstanceAttributeRequest & WithValue(Aws::String &&value)
Definition: UpdateInstanceAttributeRequest.h:161
Aws::Connect::Model::UpdateInstanceAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateInstanceAttributeRequest.h:31
Aws::Connect::Model::UpdateInstanceAttributeRequest::UpdateInstanceAttributeRequest
UpdateInstanceAttributeRequest()
Aws::Connect::Model::InstanceAttributeType
InstanceAttributeType
Definition: InstanceAttributeType.h:17
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithAttributeType
UpdateInstanceAttributeRequest & WithAttributeType(const InstanceAttributeType &value)
Definition: UpdateInstanceAttributeRequest.h:118
Aws::Connect::Model::UpdateInstanceAttributeRequest::AttributeTypeHasBeenSet
bool AttributeTypeHasBeenSet() const
Definition: UpdateInstanceAttributeRequest.h:97
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithInstanceId
UpdateInstanceAttributeRequest & WithInstanceId(const char *value)
Definition: UpdateInstanceAttributeRequest.h:82
Aws::Connect::Model::UpdateInstanceAttributeRequest::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: UpdateInstanceAttributeRequest.h:136
Aws::Connect::Model::UpdateInstanceAttributeRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateInstanceAttributeRequest.h:40
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateInstanceAttributeRequest.h:52
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetAttributeType
void SetAttributeType(InstanceAttributeType &&value)
Definition: UpdateInstanceAttributeRequest.h:111
Aws::Connect::Model::UpdateInstanceAttributeRequest::GetValue
const Aws::String & GetValue() const
Definition: UpdateInstanceAttributeRequest.h:131
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::UpdateInstanceAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithAttributeType
UpdateInstanceAttributeRequest & WithAttributeType(InstanceAttributeType &&value)
Definition: UpdateInstanceAttributeRequest.h:125
AWSString.h
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetValue
void SetValue(Aws::String &&value)
Definition: UpdateInstanceAttributeRequest.h:146
InstanceAttributeType.h
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateInstanceAttributeRequest.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithInstanceId
UpdateInstanceAttributeRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateInstanceAttributeRequest.h:70
Aws::Connect::Model::UpdateInstanceAttributeRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateInstanceAttributeRequest.h:46
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithValue
UpdateInstanceAttributeRequest & WithValue(const Aws::String &value)
Definition: UpdateInstanceAttributeRequest.h:156
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithValue
UpdateInstanceAttributeRequest & WithValue(const char *value)
Definition: UpdateInstanceAttributeRequest.h:166
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetAttributeType
void SetAttributeType(const InstanceAttributeType &value)
Definition: UpdateInstanceAttributeRequest.h:104
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetValue
void SetValue(const char *value)
Definition: UpdateInstanceAttributeRequest.h:151
Aws::Connect::Model::UpdateInstanceAttributeRequest::WithInstanceId
UpdateInstanceAttributeRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateInstanceAttributeRequest.h:76
ConnectRequest.h
Aws::Connect::Model::UpdateInstanceAttributeRequest::SetValue
void SetValue(const Aws::String &value)
Definition: UpdateInstanceAttributeRequest.h:141