AWS SDK for C++  1.9.104
AWS SDK for C++
DeclineInvitationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GuardDuty
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DeclineInvitations"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
41 
46  inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
47 
52  inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
53 
58  inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
59 
64  inline DeclineInvitationsRequest& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
65 
70  inline DeclineInvitationsRequest& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
71 
76  inline DeclineInvitationsRequest& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
77 
82  inline DeclineInvitationsRequest& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
83 
88  inline DeclineInvitationsRequest& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
89 
90  private:
91 
92  Aws::Vector<Aws::String> m_accountIds;
93  bool m_accountIdsHasBeenSet;
94  };
95 
96 } // namespace Model
97 } // namespace GuardDuty
98 } // namespace Aws
Aws::GuardDuty::Model::DeclineInvitationsRequest::DeclineInvitationsRequest
DeclineInvitationsRequest()
Aws::GuardDuty::Model::DeclineInvitationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::DeclineInvitationsRequest::SetAccountIds
void SetAccountIds(const Aws::Vector< Aws::String > &value)
Definition: DeclineInvitationsRequest.h:52
Aws::GuardDuty::Model::DeclineInvitationsRequest::AddAccountIds
DeclineInvitationsRequest & AddAccountIds(const char *value)
Definition: DeclineInvitationsRequest.h:88
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::DeclineInvitationsRequest::AccountIdsHasBeenSet
bool AccountIdsHasBeenSet() const
Definition: DeclineInvitationsRequest.h:46
AWSVector.h
Aws::GuardDuty::Model::DeclineInvitationsRequest::WithAccountIds
DeclineInvitationsRequest & WithAccountIds(const Aws::Vector< Aws::String > &value)
Definition: DeclineInvitationsRequest.h:64
Aws::GuardDuty::Model::DeclineInvitationsRequest::AddAccountIds
DeclineInvitationsRequest & AddAccountIds(Aws::String &&value)
Definition: DeclineInvitationsRequest.h:82
Aws::GuardDuty::Model::DeclineInvitationsRequest::GetAccountIds
const Aws::Vector< Aws::String > & GetAccountIds() const
Definition: DeclineInvitationsRequest.h:40
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
AWSString.h
Aws::GuardDuty::Model::DeclineInvitationsRequest::SetAccountIds
void SetAccountIds(Aws::Vector< Aws::String > &&value)
Definition: DeclineInvitationsRequest.h:58
Aws::GuardDuty::Model::DeclineInvitationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeclineInvitationsRequest.h:31
Aws::GuardDuty::Model::DeclineInvitationsRequest::WithAccountIds
DeclineInvitationsRequest & WithAccountIds(Aws::Vector< Aws::String > &&value)
Definition: DeclineInvitationsRequest.h:70
Aws::GuardDuty::Model::DeclineInvitationsRequest
Definition: DeclineInvitationsRequest.h:23
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::DeclineInvitationsRequest::AddAccountIds
DeclineInvitationsRequest & AddAccountIds(const Aws::String &value)
Definition: DeclineInvitationsRequest.h:76
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17