AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EnableDelegatedAdminAccountRequest.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/Inspector2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace Inspector2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_INSPECTOR2_API EnableDelegatedAdminAccountRequest() = default;
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 "EnableDelegatedAdminAccount"; }
32
33 AWS_INSPECTOR2_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template<typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
44 template<typename ClientTokenT = Aws::String>
45 EnableDelegatedAdminAccountRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
47
49
53 inline const Aws::String& GetDelegatedAdminAccountId() const { return m_delegatedAdminAccountId; }
54 inline bool DelegatedAdminAccountIdHasBeenSet() const { return m_delegatedAdminAccountIdHasBeenSet; }
55 template<typename DelegatedAdminAccountIdT = Aws::String>
56 void SetDelegatedAdminAccountId(DelegatedAdminAccountIdT&& value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId = std::forward<DelegatedAdminAccountIdT>(value); }
57 template<typename DelegatedAdminAccountIdT = Aws::String>
58 EnableDelegatedAdminAccountRequest& WithDelegatedAdminAccountId(DelegatedAdminAccountIdT&& value) { SetDelegatedAdminAccountId(std::forward<DelegatedAdminAccountIdT>(value)); return *this;}
60 private:
61
63 bool m_clientTokenHasBeenSet = true;
64
65 Aws::String m_delegatedAdminAccountId;
66 bool m_delegatedAdminAccountIdHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace Inspector2
71} // namespace Aws
EnableDelegatedAdminAccountRequest & WithDelegatedAdminAccountId(DelegatedAdminAccountIdT &&value)
AWS_INSPECTOR2_API EnableDelegatedAdminAccountRequest()=default
AWS_INSPECTOR2_API Aws::String SerializePayload() const override
EnableDelegatedAdminAccountRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String