AWS SDK for C++  1.8.71
AWS SDK for C++
AbortMultipartUploadRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Glacier
15 {
16 namespace Model
17 {
18 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "AbortMultipartUpload"; }
39 
40  Aws::String SerializePayload() const override;
41 
42 
50  inline const Aws::String& GetAccountId() const{ return m_accountId; }
51 
59  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
60 
68  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
69 
77  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
78 
86  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
87 
95  inline AbortMultipartUploadRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
96 
104  inline AbortMultipartUploadRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
105 
113  inline AbortMultipartUploadRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
114 
115 
119  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
120 
124  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
125 
129  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
130 
134  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
135 
139  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
140 
144  inline AbortMultipartUploadRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
145 
149  inline AbortMultipartUploadRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
150 
154  inline AbortMultipartUploadRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
155 
156 
160  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
161 
165  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
166 
170  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
171 
175  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
176 
180  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
181 
185  inline AbortMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
186 
190  inline AbortMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
191 
195  inline AbortMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
196 
197  private:
198 
199  Aws::String m_accountId;
200  bool m_accountIdHasBeenSet;
201 
202  Aws::String m_vaultName;
203  bool m_vaultNameHasBeenSet;
204 
205  Aws::String m_uploadId;
206  bool m_uploadIdHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace Glacier
211 } // namespace Aws
AbortMultipartUploadRequest & WithVaultName(const Aws::String &value)
AbortMultipartUploadRequest & WithUploadId(Aws::String &&value)
AbortMultipartUploadRequest & WithUploadId(const Aws::String &value)
AbortMultipartUploadRequest & WithAccountId(Aws::String &&value)
AbortMultipartUploadRequest & WithAccountId(const Aws::String &value)
AbortMultipartUploadRequest & WithUploadId(const char *value)
AbortMultipartUploadRequest & WithVaultName(Aws::String &&value)
#define AWS_GLACIER_API
AbortMultipartUploadRequest & WithVaultName(const char *value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AbortMultipartUploadRequest & WithAccountId(const char *value)