AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AccessKeyDetails.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
28 public:
29 AWS_GUARDDUTY_API AccessKeyDetails() = default;
30 AWS_GUARDDUTY_API AccessKeyDetails(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
39 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
40 template <typename AccessKeyIdT = Aws::String>
41 void SetAccessKeyId(AccessKeyIdT&& value) {
42 m_accessKeyIdHasBeenSet = true;
43 m_accessKeyId = std::forward<AccessKeyIdT>(value);
44 }
45 template <typename AccessKeyIdT = Aws::String>
46 AccessKeyDetails& WithAccessKeyId(AccessKeyIdT&& value) {
47 SetAccessKeyId(std::forward<AccessKeyIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
57 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
58 template <typename PrincipalIdT = Aws::String>
59 void SetPrincipalId(PrincipalIdT&& value) {
60 m_principalIdHasBeenSet = true;
61 m_principalId = std::forward<PrincipalIdT>(value);
62 }
63 template <typename PrincipalIdT = Aws::String>
64 AccessKeyDetails& WithPrincipalId(PrincipalIdT&& value) {
65 SetPrincipalId(std::forward<PrincipalIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetUserName() const { return m_userName; }
75 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
76 template <typename UserNameT = Aws::String>
77 void SetUserName(UserNameT&& value) {
78 m_userNameHasBeenSet = true;
79 m_userName = std::forward<UserNameT>(value);
80 }
81 template <typename UserNameT = Aws::String>
82 AccessKeyDetails& WithUserName(UserNameT&& value) {
83 SetUserName(std::forward<UserNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetUserType() const { return m_userType; }
93 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
94 template <typename UserTypeT = Aws::String>
95 void SetUserType(UserTypeT&& value) {
96 m_userTypeHasBeenSet = true;
97 m_userType = std::forward<UserTypeT>(value);
98 }
99 template <typename UserTypeT = Aws::String>
100 AccessKeyDetails& WithUserType(UserTypeT&& value) {
101 SetUserType(std::forward<UserTypeT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_accessKeyId;
107
108 Aws::String m_principalId;
109
110 Aws::String m_userName;
111
112 Aws::String m_userType;
113 bool m_accessKeyIdHasBeenSet = false;
114 bool m_principalIdHasBeenSet = false;
115 bool m_userNameHasBeenSet = false;
116 bool m_userTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace GuardDuty
121} // namespace Aws
const Aws::String & GetPrincipalId() const
AccessKeyDetails & WithUserName(UserNameT &&value)
void SetAccessKeyId(AccessKeyIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUserName() const
AWS_GUARDDUTY_API AccessKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(PrincipalIdT &&value)
AWS_GUARDDUTY_API AccessKeyDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccessKeyId() const
AccessKeyDetails & WithPrincipalId(PrincipalIdT &&value)
AccessKeyDetails & WithAccessKeyId(AccessKeyIdT &&value)
AccessKeyDetails & WithUserType(UserTypeT &&value)
AWS_GUARDDUTY_API AccessKeyDetails()=default
const Aws::String & GetUserType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue