AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMembersRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/guardduty/model/AccountDetail.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GuardDuty
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GUARDDUTY_API CreateMembersRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMembers"; }
33
34 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
45 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
46 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
47 inline CreateMembersRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
48 inline CreateMembersRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
49 inline CreateMembersRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
51
53
57 inline const Aws::Vector<AccountDetail>& GetAccountDetails() const{ return m_accountDetails; }
58 inline bool AccountDetailsHasBeenSet() const { return m_accountDetailsHasBeenSet; }
59 inline void SetAccountDetails(const Aws::Vector<AccountDetail>& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = value; }
60 inline void SetAccountDetails(Aws::Vector<AccountDetail>&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails = std::move(value); }
62 inline CreateMembersRequest& WithAccountDetails(Aws::Vector<AccountDetail>&& value) { SetAccountDetails(std::move(value)); return *this;}
63 inline CreateMembersRequest& AddAccountDetails(const AccountDetail& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(value); return *this; }
64 inline CreateMembersRequest& AddAccountDetails(AccountDetail&& value) { m_accountDetailsHasBeenSet = true; m_accountDetails.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_detectorId;
69 bool m_detectorIdHasBeenSet = false;
70
71 Aws::Vector<AccountDetail> m_accountDetails;
72 bool m_accountDetailsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GuardDuty
77} // namespace Aws
CreateMembersRequest & WithDetectorId(const Aws::String &value)
void SetAccountDetails(Aws::Vector< AccountDetail > &&value)
void SetAccountDetails(const Aws::Vector< AccountDetail > &value)
CreateMembersRequest & WithDetectorId(const char *value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateMembersRequest & AddAccountDetails(AccountDetail &&value)
CreateMembersRequest & WithAccountDetails(const Aws::Vector< AccountDetail > &value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< AccountDetail > & GetAccountDetails() const
CreateMembersRequest & AddAccountDetails(const AccountDetail &value)
CreateMembersRequest & WithAccountDetails(Aws::Vector< AccountDetail > &&value)
CreateMembersRequest & WithDetectorId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector