AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline SourceCredentialsInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline SourceCredentialsInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline SourceCredentialsInfo& WithArn(const char* value) { SetArn(value); return *this;}
56
58
62 inline const ServerType& GetServerType() const{ return m_serverType; }
63 inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; }
64 inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; }
65 inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); }
66 inline SourceCredentialsInfo& WithServerType(const ServerType& value) { SetServerType(value); return *this;}
67 inline SourceCredentialsInfo& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;}
69
71
75 inline const AuthType& GetAuthType() const{ return m_authType; }
76 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
77 inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; }
78 inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); }
79 inline SourceCredentialsInfo& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;}
80 inline SourceCredentialsInfo& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;}
82
84
88 inline const Aws::String& GetResource() const{ return m_resource; }
89 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
90 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
91 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
92 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
93 inline SourceCredentialsInfo& WithResource(const Aws::String& value) { SetResource(value); return *this;}
94 inline SourceCredentialsInfo& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
95 inline SourceCredentialsInfo& WithResource(const char* value) { SetResource(value); return *this;}
97 private:
98
99 Aws::String m_arn;
100 bool m_arnHasBeenSet = false;
101
102 ServerType m_serverType;
103 bool m_serverTypeHasBeenSet = false;
104
105 AuthType m_authType;
106 bool m_authTypeHasBeenSet = false;
107
108 Aws::String m_resource;
109 bool m_resourceHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CodeBuild
114} // namespace Aws
SourceCredentialsInfo & WithResource(const char *value)
SourceCredentialsInfo & WithServerType(ServerType &&value)
SourceCredentialsInfo & WithAuthType(AuthType &&value)
AWS_CODEBUILD_API SourceCredentialsInfo(Aws::Utils::Json::JsonView jsonValue)
SourceCredentialsInfo & WithResource(Aws::String &&value)
SourceCredentialsInfo & WithArn(const char *value)
SourceCredentialsInfo & WithArn(const Aws::String &value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API SourceCredentialsInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
SourceCredentialsInfo & WithAuthType(const AuthType &value)
SourceCredentialsInfo & WithResource(const Aws::String &value)
SourceCredentialsInfo & WithArn(Aws::String &&value)
SourceCredentialsInfo & WithServerType(const ServerType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue