AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApprovalStateChangedEventMetadata.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/ApprovalState.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 ApprovalStateChangedEventMetadata& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
52 inline ApprovalStateChangedEventMetadata& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
53 inline ApprovalStateChangedEventMetadata& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
55
57
60 inline const ApprovalState& GetApprovalStatus() const{ return m_approvalStatus; }
61 inline bool ApprovalStatusHasBeenSet() const { return m_approvalStatusHasBeenSet; }
62 inline void SetApprovalStatus(const ApprovalState& value) { m_approvalStatusHasBeenSet = true; m_approvalStatus = value; }
63 inline void SetApprovalStatus(ApprovalState&& value) { m_approvalStatusHasBeenSet = true; m_approvalStatus = std::move(value); }
65 inline ApprovalStateChangedEventMetadata& WithApprovalStatus(ApprovalState&& value) { SetApprovalStatus(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_revisionId;
70 bool m_revisionIdHasBeenSet = false;
71
72 ApprovalState m_approvalStatus;
73 bool m_approvalStatusHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CodeCommit
78} // namespace Aws
ApprovalStateChangedEventMetadata & WithRevisionId(Aws::String &&value)
ApprovalStateChangedEventMetadata & WithRevisionId(const Aws::String &value)
AWS_CODECOMMIT_API ApprovalStateChangedEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ApprovalStateChangedEventMetadata & WithApprovalStatus(ApprovalState &&value)
ApprovalStateChangedEventMetadata & WithApprovalStatus(const ApprovalState &value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API ApprovalStateChangedEventMetadata(Aws::Utils::Json::JsonView jsonValue)
ApprovalStateChangedEventMetadata & WithRevisionId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue