AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
DeleteBucketRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Lightsail {
15namespace Model {
16
20 public:
21 AWS_LIGHTSAIL_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_LIGHTSAIL_API Aws::String SerializePayload() const override;
30
32
34
39 inline const Aws::String& GetBucketName() const { return m_bucketName; }
40 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
41 template <typename BucketNameT = Aws::String>
42 void SetBucketName(BucketNameT&& value) {
43 m_bucketNameHasBeenSet = true;
44 m_bucketName = std::forward<BucketNameT>(value);
45 }
46 template <typename BucketNameT = Aws::String>
47 DeleteBucketRequest& WithBucketName(BucketNameT&& value) {
48 SetBucketName(std::forward<BucketNameT>(value));
49 return *this;
50 }
52
54
65 inline bool GetForceDelete() const { return m_forceDelete; }
66 inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
67 inline void SetForceDelete(bool value) {
68 m_forceDeleteHasBeenSet = true;
69 m_forceDelete = value;
70 }
72 SetForceDelete(value);
73 return *this;
74 }
76 private:
77 Aws::String m_bucketName;
78 bool m_bucketNameHasBeenSet = false;
79
80 bool m_forceDelete{false};
81 bool m_forceDeleteHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Lightsail
86} // namespace Aws
AWS_LIGHTSAIL_API DeleteBucketRequest()=default
DeleteBucketRequest & WithBucketName(BucketNameT &&value)
virtual const char * GetServiceRequestName() const override
DeleteBucketRequest & WithForceDelete(bool value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String