AWS SDK for C++  1.8.152
AWS SDK for C++
ApprovalRuleEventMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetApprovalRuleName() const{ return m_approvalRuleName; }
45 
49  inline bool ApprovalRuleNameHasBeenSet() const { return m_approvalRuleNameHasBeenSet; }
50 
54  inline void SetApprovalRuleName(const Aws::String& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = value; }
55 
59  inline void SetApprovalRuleName(Aws::String&& value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName = std::move(value); }
60 
64  inline void SetApprovalRuleName(const char* value) { m_approvalRuleNameHasBeenSet = true; m_approvalRuleName.assign(value); }
65 
69  inline ApprovalRuleEventMetadata& WithApprovalRuleName(const Aws::String& value) { SetApprovalRuleName(value); return *this;}
70 
74  inline ApprovalRuleEventMetadata& WithApprovalRuleName(Aws::String&& value) { SetApprovalRuleName(std::move(value)); return *this;}
75 
79  inline ApprovalRuleEventMetadata& WithApprovalRuleName(const char* value) { SetApprovalRuleName(value); return *this;}
80 
81 
85  inline const Aws::String& GetApprovalRuleId() const{ return m_approvalRuleId; }
86 
90  inline bool ApprovalRuleIdHasBeenSet() const { return m_approvalRuleIdHasBeenSet; }
91 
95  inline void SetApprovalRuleId(const Aws::String& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = value; }
96 
100  inline void SetApprovalRuleId(Aws::String&& value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId = std::move(value); }
101 
105  inline void SetApprovalRuleId(const char* value) { m_approvalRuleIdHasBeenSet = true; m_approvalRuleId.assign(value); }
106 
110  inline ApprovalRuleEventMetadata& WithApprovalRuleId(const Aws::String& value) { SetApprovalRuleId(value); return *this;}
111 
115  inline ApprovalRuleEventMetadata& WithApprovalRuleId(Aws::String&& value) { SetApprovalRuleId(std::move(value)); return *this;}
116 
120  inline ApprovalRuleEventMetadata& WithApprovalRuleId(const char* value) { SetApprovalRuleId(value); return *this;}
121 
122 
126  inline const Aws::String& GetApprovalRuleContent() const{ return m_approvalRuleContent; }
127 
131  inline bool ApprovalRuleContentHasBeenSet() const { return m_approvalRuleContentHasBeenSet; }
132 
136  inline void SetApprovalRuleContent(const Aws::String& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = value; }
137 
141  inline void SetApprovalRuleContent(Aws::String&& value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent = std::move(value); }
142 
146  inline void SetApprovalRuleContent(const char* value) { m_approvalRuleContentHasBeenSet = true; m_approvalRuleContent.assign(value); }
147 
151  inline ApprovalRuleEventMetadata& WithApprovalRuleContent(const Aws::String& value) { SetApprovalRuleContent(value); return *this;}
152 
156  inline ApprovalRuleEventMetadata& WithApprovalRuleContent(Aws::String&& value) { SetApprovalRuleContent(std::move(value)); return *this;}
157 
161  inline ApprovalRuleEventMetadata& WithApprovalRuleContent(const char* value) { SetApprovalRuleContent(value); return *this;}
162 
163  private:
164 
165  Aws::String m_approvalRuleName;
166  bool m_approvalRuleNameHasBeenSet;
167 
168  Aws::String m_approvalRuleId;
169  bool m_approvalRuleIdHasBeenSet;
170 
171  Aws::String m_approvalRuleContent;
172  bool m_approvalRuleContentHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace CodeCommit
177 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleId
ApprovalRuleEventMetadata & WithApprovalRuleId(const char *value)
Definition: ApprovalRuleEventMetadata.h:120
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleId
ApprovalRuleEventMetadata & WithApprovalRuleId(const Aws::String &value)
Definition: ApprovalRuleEventMetadata.h:110
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::ApprovalRuleEventMetadata
ApprovalRuleEventMetadata(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleName
void SetApprovalRuleName(const char *value)
Definition: ApprovalRuleEventMetadata.h:64
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::GetApprovalRuleContent
const Aws::String & GetApprovalRuleContent() const
Definition: ApprovalRuleEventMetadata.h:126
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::ApprovalRuleNameHasBeenSet
bool ApprovalRuleNameHasBeenSet() const
Definition: ApprovalRuleEventMetadata.h:49
Aws::CodeCommit::Model::ApprovalRuleEventMetadata
Definition: ApprovalRuleEventMetadata.h:33
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleName
ApprovalRuleEventMetadata & WithApprovalRuleName(Aws::String &&value)
Definition: ApprovalRuleEventMetadata.h:74
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleId
void SetApprovalRuleId(const char *value)
Definition: ApprovalRuleEventMetadata.h:105
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleContent
ApprovalRuleEventMetadata & WithApprovalRuleContent(const char *value)
Definition: ApprovalRuleEventMetadata.h:161
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleContent
void SetApprovalRuleContent(const Aws::String &value)
Definition: ApprovalRuleEventMetadata.h:136
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleName
void SetApprovalRuleName(Aws::String &&value)
Definition: ApprovalRuleEventMetadata.h:59
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleContent
void SetApprovalRuleContent(Aws::String &&value)
Definition: ApprovalRuleEventMetadata.h:141
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleName
ApprovalRuleEventMetadata & WithApprovalRuleName(const char *value)
Definition: ApprovalRuleEventMetadata.h:79
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleContent
ApprovalRuleEventMetadata & WithApprovalRuleContent(Aws::String &&value)
Definition: ApprovalRuleEventMetadata.h:156
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::ApprovalRuleEventMetadata::SetApprovalRuleContent
void SetApprovalRuleContent(const char *value)
Definition: ApprovalRuleEventMetadata.h:146
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleId
void SetApprovalRuleId(const Aws::String &value)
Definition: ApprovalRuleEventMetadata.h:95
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::ApprovalRuleEventMetadata
ApprovalRuleEventMetadata()
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleName
void SetApprovalRuleName(const Aws::String &value)
Definition: ApprovalRuleEventMetadata.h:54
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleId
ApprovalRuleEventMetadata & WithApprovalRuleId(Aws::String &&value)
Definition: ApprovalRuleEventMetadata.h:115
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::ApprovalRuleIdHasBeenSet
bool ApprovalRuleIdHasBeenSet() const
Definition: ApprovalRuleEventMetadata.h:90
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleName
ApprovalRuleEventMetadata & WithApprovalRuleName(const Aws::String &value)
Definition: ApprovalRuleEventMetadata.h:69
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::WithApprovalRuleContent
ApprovalRuleEventMetadata & WithApprovalRuleContent(const Aws::String &value)
Definition: ApprovalRuleEventMetadata.h:151
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::ApprovalRuleContentHasBeenSet
bool ApprovalRuleContentHasBeenSet() const
Definition: ApprovalRuleEventMetadata.h:131
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::GetApprovalRuleId
const Aws::String & GetApprovalRuleId() const
Definition: ApprovalRuleEventMetadata.h:85
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::SetApprovalRuleId
void SetApprovalRuleId(Aws::String &&value)
Definition: ApprovalRuleEventMetadata.h:100
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::operator=
ApprovalRuleEventMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::ApprovalRuleEventMetadata::GetApprovalRuleName
const Aws::String & GetApprovalRuleName() const
Definition: ApprovalRuleEventMetadata.h:44