AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApprovalRuleOverriddenEventMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/OverrideStatus.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 CodeCommit
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
47 inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
48 inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
49 inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
50 inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
51 inline ApprovalRuleOverriddenEventMetadata& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
52 inline ApprovalRuleOverriddenEventMetadata& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
53 inline ApprovalRuleOverriddenEventMetadata& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
55
57
60 inline const OverrideStatus& GetOverrideStatus() const{ return m_overrideStatus; }
61 inline bool OverrideStatusHasBeenSet() const { return m_overrideStatusHasBeenSet; }
62 inline void SetOverrideStatus(const OverrideStatus& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = value; }
63 inline void SetOverrideStatus(OverrideStatus&& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = std::move(value); }
67 private:
68
69 Aws::String m_revisionId;
70 bool m_revisionIdHasBeenSet = false;
71
72 OverrideStatus m_overrideStatus;
73 bool m_overrideStatusHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodeCommit
78} // namespace Aws
ApprovalRuleOverriddenEventMetadata & WithRevisionId(const Aws::String &value)
ApprovalRuleOverriddenEventMetadata & WithOverrideStatus(OverrideStatus &&value)
ApprovalRuleOverriddenEventMetadata & WithRevisionId(const char *value)
AWS_CODECOMMIT_API ApprovalRuleOverriddenEventMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API ApprovalRuleOverriddenEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalRuleOverriddenEventMetadata & WithRevisionId(Aws::String &&value)
ApprovalRuleOverriddenEventMetadata & WithOverrideStatus(const OverrideStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue