AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
SourceAwsConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9#include <aws/devops-agent/model/SourceAccountType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
30 public:
31 AWS_DEVOPSAGENT_API SourceAwsConfiguration() = default;
32 AWS_DEVOPSAGENT_API SourceAwsConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
58 inline SourceAccountType GetAccountType() const { return m_accountType; }
59 inline bool AccountTypeHasBeenSet() const { return m_accountTypeHasBeenSet; }
60 inline void SetAccountType(SourceAccountType value) {
61 m_accountTypeHasBeenSet = true;
62 m_accountType = value;
63 }
65 SetAccountType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAssumableRoleArn() const { return m_assumableRoleArn; }
75 inline bool AssumableRoleArnHasBeenSet() const { return m_assumableRoleArnHasBeenSet; }
76 template <typename AssumableRoleArnT = Aws::String>
77 void SetAssumableRoleArn(AssumableRoleArnT&& value) {
78 m_assumableRoleArnHasBeenSet = true;
79 m_assumableRoleArn = std::forward<AssumableRoleArnT>(value);
80 }
81 template <typename AssumableRoleArnT = Aws::String>
82 SourceAwsConfiguration& WithAssumableRoleArn(AssumableRoleArnT&& value) {
83 SetAssumableRoleArn(std::forward<AssumableRoleArnT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetExternalId() const { return m_externalId; }
94 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
95 template <typename ExternalIdT = Aws::String>
96 void SetExternalId(ExternalIdT&& value) {
97 m_externalIdHasBeenSet = true;
98 m_externalId = std::forward<ExternalIdT>(value);
99 }
100 template <typename ExternalIdT = Aws::String>
102 SetExternalId(std::forward<ExternalIdT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_accountId;
108
110
111 Aws::String m_assumableRoleArn;
112
113 Aws::String m_externalId;
114 bool m_accountIdHasBeenSet = false;
115 bool m_accountTypeHasBeenSet = false;
116 bool m_assumableRoleArnHasBeenSet = false;
117 bool m_externalIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace DevOpsAgent
122} // namespace Aws
SourceAwsConfiguration & WithAccountId(AccountIdT &&value)
AWS_DEVOPSAGENT_API SourceAwsConfiguration()=default
AWS_DEVOPSAGENT_API SourceAwsConfiguration(Aws::Utils::Json::JsonView jsonValue)
SourceAwsConfiguration & WithExternalId(ExternalIdT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API SourceAwsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceAwsConfiguration & WithAssumableRoleArn(AssumableRoleArnT &&value)
SourceAwsConfiguration & WithAccountType(SourceAccountType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue