AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SourceCredentialsInfo.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/AuthType.h>
9#include <aws/codebuild/model/ServerType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeBuild {
22namespace Model {
23
31 public:
32 AWS_CODEBUILD_API SourceCredentialsInfo() = default;
35 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
60 inline ServerType GetServerType() const { return m_serverType; }
61 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
62 inline void SetServerType(ServerType value) {
63 m_serverTypeHasBeenSet = true;
64 m_serverType = value;
65 }
67 SetServerType(value);
68 return *this;
69 }
71
73
77 inline AuthType GetAuthType() const { return m_authType; }
78 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
79 inline void SetAuthType(AuthType value) {
80 m_authTypeHasBeenSet = true;
81 m_authType = value;
82 }
84 SetAuthType(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetResource() const { return m_resource; }
95 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
96 template <typename ResourceT = Aws::String>
97 void SetResource(ResourceT&& value) {
98 m_resourceHasBeenSet = true;
99 m_resource = std::forward<ResourceT>(value);
100 }
101 template <typename ResourceT = Aws::String>
103 SetResource(std::forward<ResourceT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_arn;
109
110 ServerType m_serverType{ServerType::NOT_SET};
111
112 AuthType m_authType{AuthType::NOT_SET};
113
114 Aws::String m_resource;
115 bool m_arnHasBeenSet = false;
116 bool m_serverTypeHasBeenSet = false;
117 bool m_authTypeHasBeenSet = false;
118 bool m_resourceHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CodeBuild
123} // namespace Aws
SourceCredentialsInfo & WithAuthType(AuthType value)
SourceCredentialsInfo & WithServerType(ServerType value)
AWS_CODEBUILD_API SourceCredentialsInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API SourceCredentialsInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceCredentialsInfo & WithResource(ResourceT &&value)
AWS_CODEBUILD_API SourceCredentialsInfo()=default
SourceCredentialsInfo & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue