AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteFileShareRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DeleteFileShare"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetFileShareARN() const{ return m_fileShareARN; }
44 
48  inline bool FileShareARNHasBeenSet() const { return m_fileShareARNHasBeenSet; }
49 
53  inline void SetFileShareARN(const Aws::String& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = value; }
54 
58  inline void SetFileShareARN(Aws::String&& value) { m_fileShareARNHasBeenSet = true; m_fileShareARN = std::move(value); }
59 
63  inline void SetFileShareARN(const char* value) { m_fileShareARNHasBeenSet = true; m_fileShareARN.assign(value); }
64 
68  inline DeleteFileShareRequest& WithFileShareARN(const Aws::String& value) { SetFileShareARN(value); return *this;}
69 
73  inline DeleteFileShareRequest& WithFileShareARN(Aws::String&& value) { SetFileShareARN(std::move(value)); return *this;}
74 
78  inline DeleteFileShareRequest& WithFileShareARN(const char* value) { SetFileShareARN(value); return *this;}
79 
80 
89  inline bool GetForceDelete() const{ return m_forceDelete; }
90 
99  inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
100 
109  inline void SetForceDelete(bool value) { m_forceDeleteHasBeenSet = true; m_forceDelete = value; }
110 
119  inline DeleteFileShareRequest& WithForceDelete(bool value) { SetForceDelete(value); return *this;}
120 
121  private:
122 
123  Aws::String m_fileShareARN;
124  bool m_fileShareARNHasBeenSet;
125 
126  bool m_forceDelete;
127  bool m_forceDeleteHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace StorageGateway
132 } // namespace Aws
Aws::StorageGateway::Model::DeleteFileShareRequest::SetForceDelete
void SetForceDelete(bool value)
Definition: DeleteFileShareRequest.h:109
Aws::StorageGateway::Model::DeleteFileShareRequest::FileShareARNHasBeenSet
bool FileShareARNHasBeenSet() const
Definition: DeleteFileShareRequest.h:48
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::DeleteFileShareRequest::SetFileShareARN
void SetFileShareARN(Aws::String &&value)
Definition: DeleteFileShareRequest.h:58
Aws::StorageGateway::Model::DeleteFileShareRequest::ForceDeleteHasBeenSet
bool ForceDeleteHasBeenSet() const
Definition: DeleteFileShareRequest.h:99
Aws::StorageGateway::Model::DeleteFileShareRequest::WithFileShareARN
DeleteFileShareRequest & WithFileShareARN(Aws::String &&value)
Definition: DeleteFileShareRequest.h:73
Aws::StorageGateway::Model::DeleteFileShareRequest::DeleteFileShareRequest
DeleteFileShareRequest()
Aws::StorageGateway::Model::DeleteFileShareRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::DeleteFileShareRequest::WithForceDelete
DeleteFileShareRequest & WithForceDelete(bool value)
Definition: DeleteFileShareRequest.h:119
Aws::StorageGateway::Model::DeleteFileShareRequest::SetFileShareARN
void SetFileShareARN(const char *value)
Definition: DeleteFileShareRequest.h:63
Aws::StorageGateway::Model::DeleteFileShareRequest::WithFileShareARN
DeleteFileShareRequest & WithFileShareARN(const Aws::String &value)
Definition: DeleteFileShareRequest.h:68
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
StorageGatewayRequest.h
Aws::StorageGateway::Model::DeleteFileShareRequest::SetFileShareARN
void SetFileShareARN(const Aws::String &value)
Definition: DeleteFileShareRequest.h:53
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::DeleteFileShareRequest::GetFileShareARN
const Aws::String & GetFileShareARN() const
Definition: DeleteFileShareRequest.h:43
Aws::StorageGateway::Model::DeleteFileShareRequest
Definition: DeleteFileShareRequest.h:25
Aws::StorageGateway::Model::DeleteFileShareRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteFileShareRequest.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::DeleteFileShareRequest::GetForceDelete
bool GetForceDelete() const
Definition: DeleteFileShareRequest.h:89
Aws::StorageGateway::Model::DeleteFileShareRequest::WithFileShareARN
DeleteFileShareRequest & WithFileShareARN(const char *value)
Definition: DeleteFileShareRequest.h:78
Aws::StorageGateway::Model::DeleteFileShareRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override