AWS SDK for C++  1.8.152
AWS SDK for C++
OriginApprovalRuleTemplate.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& GetApprovalRuleTemplateId() const{ return m_approvalRuleTemplateId; }
45 
49  inline bool ApprovalRuleTemplateIdHasBeenSet() const { return m_approvalRuleTemplateIdHasBeenSet; }
50 
54  inline void SetApprovalRuleTemplateId(const Aws::String& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = value; }
55 
59  inline void SetApprovalRuleTemplateId(Aws::String&& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = std::move(value); }
60 
64  inline void SetApprovalRuleTemplateId(const char* value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId.assign(value); }
65 
69  inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(const Aws::String& value) { SetApprovalRuleTemplateId(value); return *this;}
70 
74  inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(Aws::String&& value) { SetApprovalRuleTemplateId(std::move(value)); return *this;}
75 
79  inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(const char* value) { SetApprovalRuleTemplateId(value); return *this;}
80 
81 
85  inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; }
86 
90  inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; }
91 
95  inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; }
96 
100  inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); }
101 
105  inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); }
106 
110  inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;}
111 
115  inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;}
116 
120  inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_approvalRuleTemplateId;
125  bool m_approvalRuleTemplateIdHasBeenSet;
126 
127  Aws::String m_approvalRuleTemplateName;
128  bool m_approvalRuleTemplateNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CodeCommit
133 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::OriginApprovalRuleTemplate
OriginApprovalRuleTemplate(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::WithApprovalRuleTemplateName
OriginApprovalRuleTemplate & WithApprovalRuleTemplateName(Aws::String &&value)
Definition: OriginApprovalRuleTemplate.h:115
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::GetApprovalRuleTemplateName
const Aws::String & GetApprovalRuleTemplateName() const
Definition: OriginApprovalRuleTemplate.h:85
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(Aws::String &&value)
Definition: OriginApprovalRuleTemplate.h:100
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::ApprovalRuleTemplateNameHasBeenSet
bool ApprovalRuleTemplateNameHasBeenSet() const
Definition: OriginApprovalRuleTemplate.h:90
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::WithApprovalRuleTemplateId
OriginApprovalRuleTemplate & WithApprovalRuleTemplateId(const Aws::String &value)
Definition: OriginApprovalRuleTemplate.h:69
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::SetApprovalRuleTemplateId
void SetApprovalRuleTemplateId(const char *value)
Definition: OriginApprovalRuleTemplate.h:64
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::ApprovalRuleTemplateIdHasBeenSet
bool ApprovalRuleTemplateIdHasBeenSet() const
Definition: OriginApprovalRuleTemplate.h:49
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const Aws::String &value)
Definition: OriginApprovalRuleTemplate.h:95
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::WithApprovalRuleTemplateId
OriginApprovalRuleTemplate & WithApprovalRuleTemplateId(const char *value)
Definition: OriginApprovalRuleTemplate.h:79
Aws::CodeCommit::Model::OriginApprovalRuleTemplate
Definition: OriginApprovalRuleTemplate.h:33
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::operator=
OriginApprovalRuleTemplate & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::WithApprovalRuleTemplateName
OriginApprovalRuleTemplate & WithApprovalRuleTemplateName(const char *value)
Definition: OriginApprovalRuleTemplate.h:120
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::WithApprovalRuleTemplateId
OriginApprovalRuleTemplate & WithApprovalRuleTemplateId(Aws::String &&value)
Definition: OriginApprovalRuleTemplate.h:74
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::OriginApprovalRuleTemplate
OriginApprovalRuleTemplate()
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::GetApprovalRuleTemplateId
const Aws::String & GetApprovalRuleTemplateId() const
Definition: OriginApprovalRuleTemplate.h:44
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::SetApprovalRuleTemplateId
void SetApprovalRuleTemplateId(const Aws::String &value)
Definition: OriginApprovalRuleTemplate.h:54
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::OriginApprovalRuleTemplate::SetApprovalRuleTemplateId
void SetApprovalRuleTemplateId(Aws::String &&value)
Definition: OriginApprovalRuleTemplate.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const char *value)
Definition: OriginApprovalRuleTemplate.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::OriginApprovalRuleTemplate::WithApprovalRuleTemplateName
OriginApprovalRuleTemplate & WithApprovalRuleTemplateName(const Aws::String &value)
Definition: OriginApprovalRuleTemplate.h:110