AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AccessKeyDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_GUARDDUTY_API AccessKeyDetails() = default;
35 AWS_GUARDDUTY_API AccessKeyDetails(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAccessKeyId() const { return m_accessKeyId; }
45 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
46 template<typename AccessKeyIdT = Aws::String>
47 void SetAccessKeyId(AccessKeyIdT&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::forward<AccessKeyIdT>(value); }
48 template<typename AccessKeyIdT = Aws::String>
49 AccessKeyDetails& WithAccessKeyId(AccessKeyIdT&& value) { SetAccessKeyId(std::forward<AccessKeyIdT>(value)); return *this;}
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) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
60 template<typename PrincipalIdT = Aws::String>
61 AccessKeyDetails& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetUserName() const { return m_userName; }
69 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
70 template<typename UserNameT = Aws::String>
71 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
72 template<typename UserNameT = Aws::String>
73 AccessKeyDetails& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetUserType() const { return m_userType; }
81 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
82 template<typename UserTypeT = Aws::String>
83 void SetUserType(UserTypeT&& value) { m_userTypeHasBeenSet = true; m_userType = std::forward<UserTypeT>(value); }
84 template<typename UserTypeT = Aws::String>
85 AccessKeyDetails& WithUserType(UserTypeT&& value) { SetUserType(std::forward<UserTypeT>(value)); return *this;}
87 private:
88
89 Aws::String m_accessKeyId;
90 bool m_accessKeyIdHasBeenSet = false;
91
92 Aws::String m_principalId;
93 bool m_principalIdHasBeenSet = false;
94
95 Aws::String m_userName;
96 bool m_userNameHasBeenSet = false;
97
98 Aws::String m_userType;
99 bool m_userTypeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace GuardDuty
104} // 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