AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AWSSessionCredentials.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_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 CodePipeline
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_CODEPIPELINE_API AWSSessionCredentials();
39 AWS_CODEPIPELINE_API AWSSessionCredentials(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
49 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
50 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
51 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
52 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
53 inline AWSSessionCredentials& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
54 inline AWSSessionCredentials& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
55 inline AWSSessionCredentials& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
57
59
62 inline const Aws::String& GetSecretAccessKey() const{ return m_secretAccessKey; }
63 inline bool SecretAccessKeyHasBeenSet() const { return m_secretAccessKeyHasBeenSet; }
64 inline void SetSecretAccessKey(const Aws::String& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = value; }
65 inline void SetSecretAccessKey(Aws::String&& value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey = std::move(value); }
66 inline void SetSecretAccessKey(const char* value) { m_secretAccessKeyHasBeenSet = true; m_secretAccessKey.assign(value); }
67 inline AWSSessionCredentials& WithSecretAccessKey(const Aws::String& value) { SetSecretAccessKey(value); return *this;}
68 inline AWSSessionCredentials& WithSecretAccessKey(Aws::String&& value) { SetSecretAccessKey(std::move(value)); return *this;}
69 inline AWSSessionCredentials& WithSecretAccessKey(const char* value) { SetSecretAccessKey(value); return *this;}
71
73
76 inline const Aws::String& GetSessionToken() const{ return m_sessionToken; }
77 inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; }
78 inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; }
79 inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); }
80 inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); }
81 inline AWSSessionCredentials& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;}
82 inline AWSSessionCredentials& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;}
83 inline AWSSessionCredentials& WithSessionToken(const char* value) { SetSessionToken(value); return *this;}
85 private:
86
87 Aws::String m_accessKeyId;
88 bool m_accessKeyIdHasBeenSet = false;
89
90 Aws::String m_secretAccessKey;
91 bool m_secretAccessKeyHasBeenSet = false;
92
93 Aws::String m_sessionToken;
94 bool m_sessionTokenHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace CodePipeline
99} // namespace Aws
AWS_CODEPIPELINE_API AWSSessionCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API AWSSessionCredentials(Aws::Utils::Json::JsonView jsonValue)
AWSSessionCredentials & WithSessionToken(const char *value)
AWSSessionCredentials & WithSecretAccessKey(const Aws::String &value)
AWSSessionCredentials & WithSessionToken(const Aws::String &value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWSSessionCredentials & WithAccessKeyId(Aws::String &&value)
AWSSessionCredentials & WithSecretAccessKey(const char *value)
AWSSessionCredentials & WithSecretAccessKey(Aws::String &&value)
AWSSessionCredentials & WithAccessKeyId(const char *value)
AWSSessionCredentials & WithAccessKeyId(const Aws::String &value)
AWSSessionCredentials & WithSessionToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue