AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceCredentialsInfo.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/ServerType.h>
10#include <aws/codebuild/model/AuthType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEBUILD_API SourceCredentialsInfo() = default;
40 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 SourceCredentialsInfo& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
60 inline ServerType GetServerType() const { return m_serverType; }
61 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
62 inline void SetServerType(ServerType value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
63 inline SourceCredentialsInfo& WithServerType(ServerType value) { SetServerType(value); return *this;}
65
67
71 inline AuthType GetAuthType() const { return m_authType; }
72 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
73 inline void SetAuthType(AuthType value) { m_authTypeHasBeenSet = true; m_authType = value; }
74 inline SourceCredentialsInfo& WithAuthType(AuthType value) { SetAuthType(value); return *this;}
76
78
82 inline const Aws::String& GetResource() const { return m_resource; }
83 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
84 template<typename ResourceT = Aws::String>
85 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
86 template<typename ResourceT = Aws::String>
87 SourceCredentialsInfo& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
89 private:
90
91 Aws::String m_arn;
92 bool m_arnHasBeenSet = false;
93
94 ServerType m_serverType{ServerType::NOT_SET};
95 bool m_serverTypeHasBeenSet = false;
96
97 AuthType m_authType{AuthType::NOT_SET};
98 bool m_authTypeHasBeenSet = false;
99
100 Aws::String m_resource;
101 bool m_resourceHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CodeBuild
106} // 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