AWS SDK for C++  1.9.104
AWS SDK for C++
GetBucketStatisticsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Macie2
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 "GetBucketStatistics"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetAccountId() const{ return m_accountId; }
39 
43  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 
48  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 
53  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
54 
58  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
59 
63  inline GetBucketStatisticsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
64 
68  inline GetBucketStatisticsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
69 
73  inline GetBucketStatisticsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
74 
75  private:
76 
77  Aws::String m_accountId;
78  bool m_accountIdHasBeenSet;
79  };
80 
81 } // namespace Model
82 } // namespace Macie2
83 } // namespace Aws
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::GetBucketStatisticsRequest::SerializePayload
Aws::String SerializePayload() const override
Macie2_EXPORTS.h
Aws::Macie2::Macie2Request
Definition: Macie2Request.h:17
Aws::Macie2::Model::GetBucketStatisticsRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: GetBucketStatisticsRequest.h:38
Aws::Macie2::Model::GetBucketStatisticsRequest::SetAccountId
void SetAccountId(const char *value)
Definition: GetBucketStatisticsRequest.h:58
Aws::Macie2::Model::GetBucketStatisticsRequest
Definition: GetBucketStatisticsRequest.h:22
Aws::Macie2::Model::GetBucketStatisticsRequest::WithAccountId
GetBucketStatisticsRequest & WithAccountId(const char *value)
Definition: GetBucketStatisticsRequest.h:73
Macie2Request.h
Aws::Macie2::Model::GetBucketStatisticsRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: GetBucketStatisticsRequest.h:43
Aws::Macie2::Model::GetBucketStatisticsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketStatisticsRequest.h:30
AWSString.h
Aws::Macie2::Model::GetBucketStatisticsRequest::WithAccountId
GetBucketStatisticsRequest & WithAccountId(Aws::String &&value)
Definition: GetBucketStatisticsRequest.h:68
Aws::Macie2::Model::GetBucketStatisticsRequest::GetBucketStatisticsRequest
GetBucketStatisticsRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::GetBucketStatisticsRequest::WithAccountId
GetBucketStatisticsRequest & WithAccountId(const Aws::String &value)
Definition: GetBucketStatisticsRequest.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::GetBucketStatisticsRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: GetBucketStatisticsRequest.h:48
Aws::Macie2::Model::GetBucketStatisticsRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: GetBucketStatisticsRequest.h:53