AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
47 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
48 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
49 inline AccessKeyDetails& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
50 inline AccessKeyDetails& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
51 inline AccessKeyDetails& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
53
55
58 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
59 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
60 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
61 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
62 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
63 inline AccessKeyDetails& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
64 inline AccessKeyDetails& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
65 inline AccessKeyDetails& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
67
69
72 inline const Aws::String& GetUserName() const{ return m_userName; }
73 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
74 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
75 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
76 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
77 inline AccessKeyDetails& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
78 inline AccessKeyDetails& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
79 inline AccessKeyDetails& WithUserName(const char* value) { SetUserName(value); return *this;}
81
83
86 inline const Aws::String& GetUserType() const{ return m_userType; }
87 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
88 inline void SetUserType(const Aws::String& value) { m_userTypeHasBeenSet = true; m_userType = value; }
89 inline void SetUserType(Aws::String&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
90 inline void SetUserType(const char* value) { m_userTypeHasBeenSet = true; m_userType.assign(value); }
91 inline AccessKeyDetails& WithUserType(const Aws::String& value) { SetUserType(value); return *this;}
92 inline AccessKeyDetails& WithUserType(Aws::String&& value) { SetUserType(std::move(value)); return *this;}
93 inline AccessKeyDetails& WithUserType(const char* value) { SetUserType(value); return *this;}
95 private:
96
97 Aws::String m_accessKeyId;
98 bool m_accessKeyIdHasBeenSet = false;
99
100 Aws::String m_principalId;
101 bool m_principalIdHasBeenSet = false;
102
103 Aws::String m_userName;
104 bool m_userNameHasBeenSet = false;
105
106 Aws::String m_userType;
107 bool m_userTypeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace GuardDuty
112} // namespace Aws
AccessKeyDetails & WithUserName(Aws::String &&value)
void SetPrincipalId(Aws::String &&value)
AccessKeyDetails & WithUserName(const Aws::String &value)
const Aws::String & GetPrincipalId() const
void SetUserName(const Aws::String &value)
AccessKeyDetails & WithPrincipalId(const char *value)
AccessKeyDetails & WithPrincipalId(const Aws::String &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AccessKeyDetails & WithUserType(const Aws::String &value)
const Aws::String & GetUserName() const
AWS_GUARDDUTY_API AccessKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessKeyDetails & WithUserName(const char *value)
void SetAccessKeyId(Aws::String &&value)
AccessKeyDetails & WithUserType(const char *value)
AWS_GUARDDUTY_API AccessKeyDetails(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(const Aws::String &value)
void SetUserType(const Aws::String &value)
AccessKeyDetails & WithAccessKeyId(const Aws::String &value)
AccessKeyDetails & WithPrincipalId(Aws::String &&value)
const Aws::String & GetAccessKeyId() const
AccessKeyDetails & WithUserType(Aws::String &&value)
AccessKeyDetails & WithAccessKeyId(const char *value)
void SetAccessKeyId(const Aws::String &value)
AccessKeyDetails & WithAccessKeyId(Aws::String &&value)
const Aws::String & GetUserType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue