AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeCommit
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECOMMIT_API ApprovalRuleEventMetadata();
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; }
46 inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
47 inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; }
48 inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); }
49 inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); }
51 inline ApprovalRuleEventMetadata& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;}
52 inline ApprovalRuleEventMetadata& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;}
54
56
59 inline const Aws::String& GetApprovalRuleId() const{ return m_approvalRuleId; }
60 inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; }
61 inline void SetApprovalRuleId(const Aws::String& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = value; }
62 inline void SetApprovalRuleId(Aws::String&& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = std::move(value); }
63 inline void SetApprovalRuleId(const char* value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId.assign(value); }
64 inline ApprovalRuleEventMetadata& WithApprovalRuleId(const Aws::String& value) { SetApprovalRuleId(value); return *this;}
65 inline ApprovalRuleEventMetadata& WithApprovalRuleId(Aws::String&& value) { SetApprovalRuleId(std::move(value)); return *this;}
66 inline ApprovalRuleEventMetadata& WithApprovalRuleId(const char* value) { SetApprovalRuleId(value); return *this;}
68
70
73 inline const Aws::String& GetApprovalRuleContent() const{ return m_approvalRuleContent; }
74 inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
75 inline void SetApprovalRuleContent(const Aws::String& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = value; }
76 inline void SetApprovalRuleContent(Aws::String&& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = std::move(value); }
77 inline void SetApprovalRuleContent(const char* value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent.assign(value); }
79 inline ApprovalRuleEventMetadata& WithApprovalRuleContent(Aws::String&& value) { SetApprovalRuleContent(std::move(value)); return *this;}
80 inline ApprovalRuleEventMetadata& WithApprovalRuleContent(const char* value) { SetApprovalRuleContent(value); return *this;}
82 private:
83
84 Aws::String m_approvalRuleName;
85 bool m_approvalRuleNameHasBeenSet = false;
86
87 Aws::String m_approvalRuleId;
88 bool m_approvalRuleIdHasBeenSet = false;
89
90 Aws::String m_approvalRuleContent;
91 bool m_approvalRuleContentHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CodeCommit
96} // namespace Aws
ApprovalRuleEventMetadata & WithApprovalRuleId(const char *value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
ApprovalRuleEventMetadata & WithApprovalRuleName(const Aws::String &value)
AWS_CODECOMMIT_API ApprovalRuleEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API ApprovalRuleEventMetadata(Aws::Utils::Json::JsonView jsonValue)
ApprovalRuleEventMetadata & WithApprovalRuleName(Aws::String &&value)
ApprovalRuleEventMetadata & WithApprovalRuleId(Aws::String &&value)
ApprovalRuleEventMetadata & WithApprovalRuleContent(const char *value)
ApprovalRuleEventMetadata & WithApprovalRuleContent(Aws::String &&value)
ApprovalRuleEventMetadata & WithApprovalRuleId(const Aws::String &value)
ApprovalRuleEventMetadata & WithApprovalRuleName(const char *value)
ApprovalRuleEventMetadata & WithApprovalRuleContent(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue