AWS SDK for C++  1.8.152
AWS SDK for C++
ApprovalRuleOverriddenEventMetadata.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 ApprovalRuleOverriddenEventMetadata& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
71 
75  inline ApprovalRuleOverriddenEventMetadata& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
76 
80  inline ApprovalRuleOverriddenEventMetadata& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
81 
82 
86  inline const OverrideStatus& GetOverrideStatus() const{ return m_overrideStatus; }
87 
91  inline bool OverrideStatusHasBeenSet() const { return m_overrideStatusHasBeenSet; }
92 
96  inline void SetOverrideStatus(const OverrideStatus& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = value; }
97 
101  inline void SetOverrideStatus(OverrideStatus&& value) { m_overrideStatusHasBeenSet = true; m_overrideStatus = std::move(value); }
102 
106  inline ApprovalRuleOverriddenEventMetadata& WithOverrideStatus(const OverrideStatus& value) { SetOverrideStatus(value); return *this;}
107 
111  inline ApprovalRuleOverriddenEventMetadata& WithOverrideStatus(OverrideStatus&& value) { SetOverrideStatus(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_revisionId;
116  bool m_revisionIdHasBeenSet;
117 
118  OverrideStatus m_overrideStatus;
119  bool m_overrideStatusHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace CodeCommit
124 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::ApprovalRuleOverriddenEventMetadata
ApprovalRuleOverriddenEventMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::WithOverrideStatus
ApprovalRuleOverriddenEventMetadata & WithOverrideStatus(OverrideStatus &&value)
Definition: ApprovalRuleOverriddenEventMetadata.h:111
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::ApprovalRuleOverriddenEventMetadata
ApprovalRuleOverriddenEventMetadata()
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata
Definition: ApprovalRuleOverriddenEventMetadata.h:34
OverrideStatus.h
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::SetRevisionId
void SetRevisionId(Aws::String &&value)
Definition: ApprovalRuleOverriddenEventMetadata.h:60
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::operator=
ApprovalRuleOverriddenEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::WithRevisionId
ApprovalRuleOverriddenEventMetadata & WithRevisionId(const char *value)
Definition: ApprovalRuleOverriddenEventMetadata.h:80
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::WithRevisionId
ApprovalRuleOverriddenEventMetadata & WithRevisionId(Aws::String &&value)
Definition: ApprovalRuleOverriddenEventMetadata.h:75
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::SetOverrideStatus
void SetOverrideStatus(OverrideStatus &&value)
Definition: ApprovalRuleOverriddenEventMetadata.h:101
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::SetOverrideStatus
void SetOverrideStatus(const OverrideStatus &value)
Definition: ApprovalRuleOverriddenEventMetadata.h:96
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::RevisionIdHasBeenSet
bool RevisionIdHasBeenSet() const
Definition: ApprovalRuleOverriddenEventMetadata.h:50
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::SetRevisionId
void SetRevisionId(const Aws::String &value)
Definition: ApprovalRuleOverriddenEventMetadata.h:55
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::GetOverrideStatus
const OverrideStatus & GetOverrideStatus() const
Definition: ApprovalRuleOverriddenEventMetadata.h:86
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::OverrideStatus
OverrideStatus
Definition: OverrideStatus.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::WithRevisionId
ApprovalRuleOverriddenEventMetadata & WithRevisionId(const Aws::String &value)
Definition: ApprovalRuleOverriddenEventMetadata.h:70
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::SetRevisionId
void SetRevisionId(const char *value)
Definition: ApprovalRuleOverriddenEventMetadata.h:65
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::GetRevisionId
const Aws::String & GetRevisionId() const
Definition: ApprovalRuleOverriddenEventMetadata.h:45
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::OverrideStatusHasBeenSet
bool OverrideStatusHasBeenSet() const
Definition: ApprovalRuleOverriddenEventMetadata.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ApprovalRuleOverriddenEventMetadata::WithOverrideStatus
ApprovalRuleOverriddenEventMetadata & WithOverrideStatus(const OverrideStatus &value)
Definition: ApprovalRuleOverriddenEventMetadata.h:106