AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InstanceCredentials.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
33 public:
34 AWS_GAMELIFT_API InstanceCredentials() = default;
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetUserName() const { return m_userName; }
44 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
45 template <typename UserNameT = Aws::String>
46 void SetUserName(UserNameT&& value) {
47 m_userNameHasBeenSet = true;
48 m_userName = std::forward<UserNameT>(value);
49 }
50 template <typename UserNameT = Aws::String>
51 InstanceCredentials& WithUserName(UserNameT&& value) {
52 SetUserName(std::forward<UserNameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetSecret() const { return m_secret; }
64 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
65 template <typename SecretT = Aws::String>
66 void SetSecret(SecretT&& value) {
67 m_secretHasBeenSet = true;
68 m_secret = std::forward<SecretT>(value);
69 }
70 template <typename SecretT = Aws::String>
71 InstanceCredentials& WithSecret(SecretT&& value) {
72 SetSecret(std::forward<SecretT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_userName;
78
79 Aws::String m_secret;
80 bool m_userNameHasBeenSet = false;
81 bool m_secretHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace GameLift
86} // namespace Aws
AWS_GAMELIFT_API InstanceCredentials()=default
AWS_GAMELIFT_API InstanceCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceCredentials & WithUserName(UserNameT &&value)
InstanceCredentials & WithSecret(SecretT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API InstanceCredentials(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue