AWS SDK for C++  1.9.131
AWS SDK for C++
AssociateInstanceStorageConfigRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Connect
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "AssociateInstanceStorageConfig"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
42 
47  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
48 
53  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
54 
59  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
60 
65  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
66 
71  inline AssociateInstanceStorageConfigRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
72 
77  inline AssociateInstanceStorageConfigRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
78 
83  inline AssociateInstanceStorageConfigRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
84 
85 
89  inline const InstanceStorageResourceType& GetResourceType() const{ return m_resourceType; }
90 
94  inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 
99  inline void SetResourceType(const InstanceStorageResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
100 
104  inline void SetResourceType(InstanceStorageResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
105 
109  inline AssociateInstanceStorageConfigRequest& WithResourceType(const InstanceStorageResourceType& value) { SetResourceType(value); return *this;}
110 
114  inline AssociateInstanceStorageConfigRequest& WithResourceType(InstanceStorageResourceType&& value) { SetResourceType(std::move(value)); return *this;}
115 
116 
120  inline const InstanceStorageConfig& GetStorageConfig() const{ return m_storageConfig; }
121 
125  inline bool StorageConfigHasBeenSet() const { return m_storageConfigHasBeenSet; }
126 
130  inline void SetStorageConfig(const InstanceStorageConfig& value) { m_storageConfigHasBeenSet = true; m_storageConfig = value; }
131 
135  inline void SetStorageConfig(InstanceStorageConfig&& value) { m_storageConfigHasBeenSet = true; m_storageConfig = std::move(value); }
136 
140  inline AssociateInstanceStorageConfigRequest& WithStorageConfig(const InstanceStorageConfig& value) { SetStorageConfig(value); return *this;}
141 
145  inline AssociateInstanceStorageConfigRequest& WithStorageConfig(InstanceStorageConfig&& value) { SetStorageConfig(std::move(value)); return *this;}
146 
147  private:
148 
149  Aws::String m_instanceId;
150  bool m_instanceIdHasBeenSet;
151 
152  InstanceStorageResourceType m_resourceType;
153  bool m_resourceTypeHasBeenSet;
154 
155  InstanceStorageConfig m_storageConfig;
156  bool m_storageConfigHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace Connect
161 } // namespace Aws
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::GetStorageConfig
const InstanceStorageConfig & GetStorageConfig() const
Definition: AssociateInstanceStorageConfigRequest.h:120
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithInstanceId
AssociateInstanceStorageConfigRequest & WithInstanceId(Aws::String &&value)
Definition: AssociateInstanceStorageConfigRequest.h:77
InstanceStorageConfig.h
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::AssociateInstanceStorageConfigRequest
AssociateInstanceStorageConfigRequest()
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: AssociateInstanceStorageConfigRequest.h:41
InstanceStorageResourceType.h
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateInstanceStorageConfigRequest.h:32
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: AssociateInstanceStorageConfigRequest.h:47
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::GetResourceType
const InstanceStorageResourceType & GetResourceType() const
Definition: AssociateInstanceStorageConfigRequest.h:89
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: AssociateInstanceStorageConfigRequest.h:53
Aws::Connect::Model::AssociateInstanceStorageConfigRequest
Definition: AssociateInstanceStorageConfigRequest.h:24
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetStorageConfig
void SetStorageConfig(const InstanceStorageConfig &value)
Definition: AssociateInstanceStorageConfigRequest.h:130
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithStorageConfig
AssociateInstanceStorageConfigRequest & WithStorageConfig(const InstanceStorageConfig &value)
Definition: AssociateInstanceStorageConfigRequest.h:140
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetStorageConfig
void SetStorageConfig(InstanceStorageConfig &&value)
Definition: AssociateInstanceStorageConfigRequest.h:135
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::StorageConfigHasBeenSet
bool StorageConfigHasBeenSet() const
Definition: AssociateInstanceStorageConfigRequest.h:125
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: AssociateInstanceStorageConfigRequest.h:65
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: AssociateInstanceStorageConfigRequest.h:59
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithInstanceId
AssociateInstanceStorageConfigRequest & WithInstanceId(const Aws::String &value)
Definition: AssociateInstanceStorageConfigRequest.h:71
AWSString.h
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithStorageConfig
AssociateInstanceStorageConfigRequest & WithStorageConfig(InstanceStorageConfig &&value)
Definition: AssociateInstanceStorageConfigRequest.h:145
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetResourceType
void SetResourceType(InstanceStorageResourceType &&value)
Definition: AssociateInstanceStorageConfigRequest.h:104
Aws::Connect::Model::InstanceStorageConfig
Definition: InstanceStorageConfig.h:37
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithInstanceId
AssociateInstanceStorageConfigRequest & WithInstanceId(const char *value)
Definition: AssociateInstanceStorageConfigRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::ResourceTypeHasBeenSet
bool ResourceTypeHasBeenSet() const
Definition: AssociateInstanceStorageConfigRequest.h:94
Aws::Connect::Model::InstanceStorageResourceType
InstanceStorageResourceType
Definition: InstanceStorageResourceType.h:17
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::SetResourceType
void SetResourceType(const InstanceStorageResourceType &value)
Definition: AssociateInstanceStorageConfigRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithResourceType
AssociateInstanceStorageConfigRequest & WithResourceType(InstanceStorageResourceType &&value)
Definition: AssociateInstanceStorageConfigRequest.h:114
ConnectRequest.h
Aws::Connect::Model::AssociateInstanceStorageConfigRequest::WithResourceType
AssociateInstanceStorageConfigRequest & WithResourceType(const InstanceStorageResourceType &value)
Definition: AssociateInstanceStorageConfigRequest.h:109