AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteBucketRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace S3Control {
15namespace Model {
16
20 public:
21 AWS_S3CONTROL_API DeleteBucketRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteBucket"; }
28
29 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
30
32
36 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
37
39
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
50 DeleteBucketRequest& WithAccountId(AccountIdT&& value) {
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
70 inline const Aws::String& GetBucket() const { return m_bucket; }
71 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
72 template <typename BucketT = Aws::String>
73 void SetBucket(BucketT&& value) {
74 m_bucketHasBeenSet = true;
75 m_bucket = std::forward<BucketT>(value);
76 }
77 template <typename BucketT = Aws::String>
78 DeleteBucketRequest& WithBucket(BucketT&& value) {
79 SetBucket(std::forward<BucketT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_accountId;
85
86 Aws::String m_bucket;
87 bool m_accountIdHasBeenSet = false;
88 bool m_bucketHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace S3Control
93} // namespace Aws
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API Aws::String SerializePayload() const override
DeleteBucketRequest & WithBucket(BucketT &&value)
DeleteBucketRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API DeleteBucketRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String