AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
InstanceCredentials.h
1
6#pragma once
7#include <aws/gamelift/GameLift_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 GameLift
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_GAMELIFT_API InstanceCredentials() = default;
42 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetUserName() const { return m_userName; }
50 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
51 template<typename UserNameT = Aws::String>
52 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
53 template<typename UserNameT = Aws::String>
54 InstanceCredentials& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
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) { m_secretHasBeenSet = true; m_secret = std::forward<SecretT>(value); }
67 template<typename SecretT = Aws::String>
68 InstanceCredentials& WithSecret(SecretT&& value) { SetSecret(std::forward<SecretT>(value)); return *this;}
70 private:
71
72 Aws::String m_userName;
73 bool m_userNameHasBeenSet = false;
74
75 Aws::String m_secret;
76 bool m_secretHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GameLift
81} // 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