AWS SDK for C++  1.9.108
AWS SDK for C++
DeleteBucketAccessKeyRequest.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 "DeleteBucketAccessKey"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
41 
45  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
46 
50  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
51 
55  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
56 
60  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
61 
65  inline DeleteBucketAccessKeyRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
66 
70  inline DeleteBucketAccessKeyRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
71 
75  inline DeleteBucketAccessKeyRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
76 
77 
82  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
83 
88  inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
89 
94  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
95 
100  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
101 
106  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
107 
112  inline DeleteBucketAccessKeyRequest& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
113 
118  inline DeleteBucketAccessKeyRequest& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
119 
124  inline DeleteBucketAccessKeyRequest& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
125 
126  private:
127 
128  Aws::String m_bucketName;
129  bool m_bucketNameHasBeenSet;
130 
131  Aws::String m_accessKeyId;
132  bool m_accessKeyIdHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Lightsail
137 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteBucketAccessKeyRequest.h:30
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::AccessKeyIdHasBeenSet
bool AccessKeyIdHasBeenSet() const
Definition: DeleteBucketAccessKeyRequest.h:88
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::DeleteBucketAccessKeyRequest
DeleteBucketAccessKeyRequest()
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SetAccessKeyId
void SetAccessKeyId(Aws::String &&value)
Definition: DeleteBucketAccessKeyRequest.h:100
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SetAccessKeyId
void SetAccessKeyId(const char *value)
Definition: DeleteBucketAccessKeyRequest.h:106
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SerializePayload
Aws::String SerializePayload() const override
LightsailRequest.h
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: DeleteBucketAccessKeyRequest.h:45
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::WithBucketName
DeleteBucketAccessKeyRequest & WithBucketName(const Aws::String &value)
Definition: DeleteBucketAccessKeyRequest.h:65
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SetAccessKeyId
void SetAccessKeyId(const Aws::String &value)
Definition: DeleteBucketAccessKeyRequest.h:94
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::WithAccessKeyId
DeleteBucketAccessKeyRequest & WithAccessKeyId(const Aws::String &value)
Definition: DeleteBucketAccessKeyRequest.h:112
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::WithBucketName
DeleteBucketAccessKeyRequest & WithBucketName(Aws::String &&value)
Definition: DeleteBucketAccessKeyRequest.h:70
AWSString.h
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::WithAccessKeyId
DeleteBucketAccessKeyRequest & WithAccessKeyId(Aws::String &&value)
Definition: DeleteBucketAccessKeyRequest.h:118
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: DeleteBucketAccessKeyRequest.h:50
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::WithAccessKeyId
DeleteBucketAccessKeyRequest & WithAccessKeyId(const char *value)
Definition: DeleteBucketAccessKeyRequest.h:124
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest
Definition: DeleteBucketAccessKeyRequest.h:22
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: DeleteBucketAccessKeyRequest.h:40
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SetBucketName
void SetBucketName(const char *value)
Definition: DeleteBucketAccessKeyRequest.h:60
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: DeleteBucketAccessKeyRequest.h:55
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::GetAccessKeyId
const Aws::String & GetAccessKeyId() const
Definition: DeleteBucketAccessKeyRequest.h:82
Aws::Lightsail::Model::DeleteBucketAccessKeyRequest::WithBucketName
DeleteBucketAccessKeyRequest & WithBucketName(const char *value)
Definition: DeleteBucketAccessKeyRequest.h:75