AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScopeConfiguration.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/WebhookScopeType.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 ScopeConfiguration() = default;
37 AWS_CODEBUILD_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 ScopeConfiguration& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
65 template<typename DomainT = Aws::String>
66 ScopeConfiguration& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
68
70
74 inline WebhookScopeType GetScope() const { return m_scope; }
75 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
76 inline void SetScope(WebhookScopeType value) { m_scopeHasBeenSet = true; m_scope = value; }
77 inline ScopeConfiguration& WithScope(WebhookScopeType value) { SetScope(value); return *this;}
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_domain;
85 bool m_domainHasBeenSet = false;
86
88 bool m_scopeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CodeBuild
93} // 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