AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ScopeConfiguration.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/WebhookScopeType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
30 public:
31 AWS_CODEBUILD_API ScopeConfiguration() = default;
32 AWS_CODEBUILD_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 ScopeConfiguration& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetDomain() const { return m_domain; }
62 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
63 template <typename DomainT = Aws::String>
64 void SetDomain(DomainT&& value) {
65 m_domainHasBeenSet = true;
66 m_domain = std::forward<DomainT>(value);
67 }
68 template <typename DomainT = Aws::String>
69 ScopeConfiguration& WithDomain(DomainT&& value) {
70 SetDomain(std::forward<DomainT>(value));
71 return *this;
72 }
74
76
80 inline WebhookScopeType GetScope() const { return m_scope; }
81 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
82 inline void SetScope(WebhookScopeType value) {
83 m_scopeHasBeenSet = true;
84 m_scope = value;
85 }
87 SetScope(value);
88 return *this;
89 }
91 private:
92 Aws::String m_name;
93
94 Aws::String m_domain;
95
97 bool m_nameHasBeenSet = false;
98 bool m_domainHasBeenSet = false;
99 bool m_scopeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CodeBuild
104} // namespace Aws
AWS_CODEBUILD_API ScopeConfiguration()=default
ScopeConfiguration & WithDomain(DomainT &&value)
AWS_CODEBUILD_API ScopeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ScopeConfiguration & WithScope(WebhookScopeType value)
ScopeConfiguration & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue