AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteBucketRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Lightsail
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeleteBucket"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
42 
47  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 
53  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
54 
59  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
60 
65  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
66 
71  inline DeleteBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
72 
77  inline DeleteBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
78 
83  inline DeleteBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
84 
85 
97  inline bool GetForceDelete() const{ return m_forceDelete; }
98 
110  inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
111 
123  inline void SetForceDelete(bool value) { m_forceDeleteHasBeenSet = true; m_forceDelete = value; }
124 
136  inline DeleteBucketRequest& WithForceDelete(bool value) { SetForceDelete(value); return *this;}
137 
138  private:
139 
140  Aws::String m_bucketName;
141  bool m_bucketNameHasBeenSet;
142 
143  bool m_forceDelete;
144  bool m_forceDeleteHasBeenSet;
145  };
146 
147 } // namespace Model
148 } // namespace Lightsail
149 } // namespace Aws
Aws::Lightsail::Model::DeleteBucketRequest::WithBucketName
DeleteBucketRequest & WithBucketName(const char *value)
Definition: DeleteBucketRequest.h:83
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::DeleteBucketRequest::WithBucketName
DeleteBucketRequest & WithBucketName(Aws::String &&value)
Definition: DeleteBucketRequest.h:77
Aws::Lightsail::Model::DeleteBucketRequest::WithBucketName
DeleteBucketRequest & WithBucketName(const Aws::String &value)
Definition: DeleteBucketRequest.h:71
Aws::Lightsail::Model::DeleteBucketRequest::WithForceDelete
DeleteBucketRequest & WithForceDelete(bool value)
Definition: DeleteBucketRequest.h:136
Aws::Lightsail::Model::DeleteBucketRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: DeleteBucketRequest.h:59
Aws::Lightsail::Model::DeleteBucketRequest::ForceDeleteHasBeenSet
bool ForceDeleteHasBeenSet() const
Definition: DeleteBucketRequest.h:110
LightsailRequest.h
Aws::Lightsail::Model::DeleteBucketRequest::GetForceDelete
bool GetForceDelete() const
Definition: DeleteBucketRequest.h:97
Aws::Lightsail::Model::DeleteBucketRequest::DeleteBucketRequest
DeleteBucketRequest()
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::DeleteBucketRequest::SetForceDelete
void SetForceDelete(bool value)
Definition: DeleteBucketRequest.h:123
AWSString.h
Aws::Lightsail::Model::DeleteBucketRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: DeleteBucketRequest.h:47
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DeleteBucketRequest::SetBucketName
void SetBucketName(const char *value)
Definition: DeleteBucketRequest.h:65
Aws::Lightsail::Model::DeleteBucketRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteBucketRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DeleteBucketRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: DeleteBucketRequest.h:41
Aws::Lightsail::Model::DeleteBucketRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::DeleteBucketRequest
Definition: DeleteBucketRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DeleteBucketRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: DeleteBucketRequest.h:53
Aws::Lightsail::Model::DeleteBucketRequest::SerializePayload
Aws::String SerializePayload() const override