AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ApprovalRuleEventMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeCommit {
20namespace Model {
21
29 public:
30 AWS_CODECOMMIT_API ApprovalRuleEventMetadata() = default;
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetApprovalRuleName() const { return m_approvalRuleName; }
40 inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
41 template <typename ApprovalRuleNameT = Aws::String>
42 void SetApprovalRuleName(ApprovalRuleNameT&& value) {
43 m_approvalRuleNameHasBeenSet = true;
44 m_approvalRuleName = std::forward<ApprovalRuleNameT>(value);
45 }
46 template <typename ApprovalRuleNameT = Aws::String>
47 ApprovalRuleEventMetadata& WithApprovalRuleName(ApprovalRuleNameT&& value) {
48 SetApprovalRuleName(std::forward<ApprovalRuleNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetApprovalRuleId() const { return m_approvalRuleId; }
58 inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; }
59 template <typename ApprovalRuleIdT = Aws::String>
60 void SetApprovalRuleId(ApprovalRuleIdT&& value) {
61 m_approvalRuleIdHasBeenSet = true;
62 m_approvalRuleId = std::forward<ApprovalRuleIdT>(value);
63 }
64 template <typename ApprovalRuleIdT = Aws::String>
66 SetApprovalRuleId(std::forward<ApprovalRuleIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetApprovalRuleContent() const { return m_approvalRuleContent; }
76 inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
77 template <typename ApprovalRuleContentT = Aws::String>
78 void SetApprovalRuleContent(ApprovalRuleContentT&& value) {
79 m_approvalRuleContentHasBeenSet = true;
80 m_approvalRuleContent = std::forward<ApprovalRuleContentT>(value);
81 }
82 template <typename ApprovalRuleContentT = Aws::String>
83 ApprovalRuleEventMetadata& WithApprovalRuleContent(ApprovalRuleContentT&& value) {
84 SetApprovalRuleContent(std::forward<ApprovalRuleContentT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_approvalRuleName;
90
91 Aws::String m_approvalRuleId;
92
93 Aws::String m_approvalRuleContent;
94 bool m_approvalRuleNameHasBeenSet = false;
95 bool m_approvalRuleIdHasBeenSet = false;
96 bool m_approvalRuleContentHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CodeCommit
101} // namespace Aws
AWS_CODECOMMIT_API ApprovalRuleEventMetadata()=default
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API ApprovalRuleEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalRuleEventMetadata & WithApprovalRuleName(ApprovalRuleNameT &&value)
AWS_CODECOMMIT_API ApprovalRuleEventMetadata(Aws::Utils::Json::JsonView jsonValue)
ApprovalRuleEventMetadata & WithApprovalRuleId(ApprovalRuleIdT &&value)
ApprovalRuleEventMetadata & WithApprovalRuleContent(ApprovalRuleContentT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue