AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline ScopeConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline ScopeConfiguration& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline ScopeConfiguration& WithName(const char* value) { SetName(value); return *this;}
56
58
63 inline const Aws::String& GetDomain() const{ return m_domain; }
64 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
65 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
66 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
67 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
68 inline ScopeConfiguration& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
69 inline ScopeConfiguration& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
70 inline ScopeConfiguration& WithDomain(const char* value) { SetDomain(value); return *this;}
72
74
77 inline const WebhookScopeType& GetScope() const{ return m_scope; }
78 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
79 inline void SetScope(const WebhookScopeType& value) { m_scopeHasBeenSet = true; m_scope = value; }
80 inline void SetScope(WebhookScopeType&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
81 inline ScopeConfiguration& WithScope(const WebhookScopeType& value) { SetScope(value); return *this;}
82 inline ScopeConfiguration& WithScope(WebhookScopeType&& value) { SetScope(std::move(value)); return *this;}
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::String m_domain;
90 bool m_domainHasBeenSet = false;
91
92 WebhookScopeType m_scope;
93 bool m_scopeHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeBuild
98} // namespace Aws
ScopeConfiguration & WithName(Aws::String &&value)
ScopeConfiguration & WithDomain(const char *value)
void SetScope(const WebhookScopeType &value)
void SetScope(WebhookScopeType &&value)
ScopeConfiguration & WithName(const Aws::String &value)
ScopeConfiguration & WithDomain(const Aws::String &value)
const WebhookScopeType & GetScope() const
AWS_CODEBUILD_API ScopeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDomain(const Aws::String &value)
ScopeConfiguration & WithScope(const WebhookScopeType &value)
ScopeConfiguration & WithDomain(Aws::String &&value)
ScopeConfiguration & WithName(const char *value)
AWS_CODEBUILD_API ScopeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ScopeConfiguration & WithScope(WebhookScopeType &&value)
void SetName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue