AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AccessKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
27class AccessKey {
28 public:
29 AWS_GUARDDUTY_API AccessKey() = default;
30 AWS_GUARDDUTY_API AccessKey(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GUARDDUTY_API AccessKey& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
39 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
40 template <typename PrincipalIdT = Aws::String>
41 void SetPrincipalId(PrincipalIdT&& value) {
42 m_principalIdHasBeenSet = true;
43 m_principalId = std::forward<PrincipalIdT>(value);
44 }
45 template <typename PrincipalIdT = Aws::String>
46 AccessKey& WithPrincipalId(PrincipalIdT&& value) {
47 SetPrincipalId(std::forward<PrincipalIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetUserName() const { return m_userName; }
57 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
58 template <typename UserNameT = Aws::String>
59 void SetUserName(UserNameT&& value) {
60 m_userNameHasBeenSet = true;
61 m_userName = std::forward<UserNameT>(value);
62 }
63 template <typename UserNameT = Aws::String>
64 AccessKey& WithUserName(UserNameT&& value) {
65 SetUserName(std::forward<UserNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetUserType() const { return m_userType; }
75 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
76 template <typename UserTypeT = Aws::String>
77 void SetUserType(UserTypeT&& value) {
78 m_userTypeHasBeenSet = true;
79 m_userType = std::forward<UserTypeT>(value);
80 }
81 template <typename UserTypeT = Aws::String>
82 AccessKey& WithUserType(UserTypeT&& value) {
83 SetUserType(std::forward<UserTypeT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_principalId;
89
90 Aws::String m_userName;
91
92 Aws::String m_userType;
93 bool m_principalIdHasBeenSet = false;
94 bool m_userNameHasBeenSet = false;
95 bool m_userTypeHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace GuardDuty
100} // namespace Aws
AWS_GUARDDUTY_API AccessKey(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUserName() const
Definition AccessKey.h:56
AccessKey & WithUserType(UserTypeT &&value)
Definition AccessKey.h:82
const Aws::String & GetUserType() const
Definition AccessKey.h:74
AccessKey & WithPrincipalId(PrincipalIdT &&value)
Definition AccessKey.h:46
void SetUserType(UserTypeT &&value)
Definition AccessKey.h:77
const Aws::String & GetPrincipalId() const
Definition AccessKey.h:38
AccessKey & WithUserName(UserNameT &&value)
Definition AccessKey.h:64
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API AccessKey()=default
void SetPrincipalId(PrincipalIdT &&value)
Definition AccessKey.h:41
AWS_GUARDDUTY_API AccessKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUserName(UserNameT &&value)
Definition AccessKey.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue