AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SourceAuth.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/SourceAuthType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeBuild
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEBUILD_API SourceAuth();
37 AWS_CODEBUILD_API SourceAuth(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API SourceAuth& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const SourceAuthType& GetType() const{ return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(const SourceAuthType& value) { m_typeHasBeenSet = true; m_type = value; }
50 inline void SetType(SourceAuthType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
51 inline SourceAuth& WithType(const SourceAuthType& value) { SetType(value); return *this;}
52 inline SourceAuth& WithType(SourceAuthType&& value) { SetType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetResource() const{ return m_resource; }
60 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
61 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
62 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
63 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
64 inline SourceAuth& WithResource(const Aws::String& value) { SetResource(value); return *this;}
65 inline SourceAuth& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
66 inline SourceAuth& WithResource(const char* value) { SetResource(value); return *this;}
68 private:
69
70 SourceAuthType m_type;
71 bool m_typeHasBeenSet = false;
72
73 Aws::String m_resource;
74 bool m_resourceHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeBuild
79} // namespace Aws
AWS_CODEBUILD_API SourceAuth & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResource() const
Definition SourceAuth.h:59
const SourceAuthType & GetType() const
Definition SourceAuth.h:47
void SetType(const SourceAuthType &value)
Definition SourceAuth.h:49
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(SourceAuthType &&value)
Definition SourceAuth.h:50
SourceAuth & WithResource(const Aws::String &value)
Definition SourceAuth.h:64
AWS_CODEBUILD_API SourceAuth(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API SourceAuth()
void SetResource(Aws::String &&value)
Definition SourceAuth.h:62
SourceAuth & WithResource(const char *value)
Definition SourceAuth.h:66
void SetResource(const char *value)
Definition SourceAuth.h:63
void SetResource(const Aws::String &value)
Definition SourceAuth.h:61
SourceAuth & WithType(SourceAuthType &&value)
Definition SourceAuth.h:52
SourceAuth & WithType(const SourceAuthType &value)
Definition SourceAuth.h:51
SourceAuth & WithResource(Aws::String &&value)
Definition SourceAuth.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue