AWS SDK for C++  1.8.152
AWS SDK for C++
ApprovalStateChangedEventMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
46 
50  inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; }
51 
55  inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; }
56 
60  inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); }
61 
65  inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); }
66 
70  inline ApprovalStateChangedEventMetadata& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
71 
75  inline ApprovalStateChangedEventMetadata& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
76 
80  inline ApprovalStateChangedEventMetadata& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
81 
82 
86  inline const ApprovalState& GetApprovalStatus() const{ return m_approvalStatus; }
87 
91  inline bool ApprovalStatusHasBeenSet() const { return m_approvalStatusHasBeenSet; }
92 
96  inline void SetApprovalStatus(const ApprovalState& value) { m_approvalStatusHasBeenSet = true; m_approvalStatus = value; }
97 
101  inline void SetApprovalStatus(ApprovalState&& value) { m_approvalStatusHasBeenSet = true; m_approvalStatus = std::move(value); }
102 
106  inline ApprovalStateChangedEventMetadata& WithApprovalStatus(const ApprovalState& value) { SetApprovalStatus(value); return *this;}
107 
111  inline ApprovalStateChangedEventMetadata& WithApprovalStatus(ApprovalState&& value) { SetApprovalStatus(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_revisionId;
116  bool m_revisionIdHasBeenSet;
117 
118  ApprovalState m_approvalStatus;
119  bool m_approvalStatusHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace CodeCommit
124 } // namespace Aws
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::GetApprovalStatus
const ApprovalState & GetApprovalStatus() const
Definition: ApprovalStateChangedEventMetadata.h:86
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: ApprovalStateChangedEventMetadata.h:50
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: ApprovalStateChangedEventMetadata.h:45
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::operator=
ApprovalStateChangedEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::SetApprovalStatus
void SetApprovalStatus(ApprovalState &&value)
Definition: ApprovalStateChangedEventMetadata.h:101
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::WithRevisionId
ApprovalStateChangedEventMetadata & WithRevisionId(const Aws::String &value)
Definition: ApprovalStateChangedEventMetadata.h:70
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::ApprovalStateChangedEventMetadata
ApprovalStateChangedEventMetadata()
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::SetRevisionId
void SetRevisionId(const char *value)
Definition: ApprovalStateChangedEventMetadata.h:65
ApprovalState.h
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: ApprovalStateChangedEventMetadata.h:60
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::WithRevisionId
ApprovalStateChangedEventMetadata & WithRevisionId(Aws::String &&value)
Definition: ApprovalStateChangedEventMetadata.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: ApprovalStateChangedEventMetadata.h:55
Aws::CodeCommit::Model::ApprovalState
ApprovalState
Definition: ApprovalState.h:17
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::WithApprovalStatus
ApprovalStateChangedEventMetadata & WithApprovalStatus(const ApprovalState &value)
Definition: ApprovalStateChangedEventMetadata.h:106
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::SetApprovalStatus
void SetApprovalStatus(const ApprovalState &value)
Definition: ApprovalStateChangedEventMetadata.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::WithRevisionId
ApprovalStateChangedEventMetadata & WithRevisionId(const char *value)
Definition: ApprovalStateChangedEventMetadata.h:80
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::ApprovalStateChangedEventMetadata
ApprovalStateChangedEventMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::ApprovalStatusHasBeenSet
bool ApprovalStatusHasBeenSet() const
Definition: ApprovalStateChangedEventMetadata.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata
Definition: ApprovalStateChangedEventMetadata.h:34
Aws::CodeCommit::Model::ApprovalStateChangedEventMetadata::WithApprovalStatus
ApprovalStateChangedEventMetadata & WithApprovalStatus(ApprovalState &&value)
Definition: ApprovalStateChangedEventMetadata.h:111