1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/codecommit/CodeCommit_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 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 26 /** 27 * <p>Returns information about the template that created the approval rule for a 28 * pull request.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/codecommit-2015-04-13/OriginApprovalRuleTemplate">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_CODECOMMIT_API OriginApprovalRuleTemplate 33 { 34 public: 35 OriginApprovalRuleTemplate(); 36 OriginApprovalRuleTemplate(Aws::Utils::Json::JsonView jsonValue); 37 OriginApprovalRuleTemplate& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The ID of the template that created the approval rule.</p> 43 */ GetApprovalRuleTemplateId()44 inline const Aws::String& GetApprovalRuleTemplateId() const{ return m_approvalRuleTemplateId; } 45 46 /** 47 * <p>The ID of the template that created the approval rule.</p> 48 */ ApprovalRuleTemplateIdHasBeenSet()49 inline bool ApprovalRuleTemplateIdHasBeenSet() const { return m_approvalRuleTemplateIdHasBeenSet; } 50 51 /** 52 * <p>The ID of the template that created the approval rule.</p> 53 */ SetApprovalRuleTemplateId(const Aws::String & value)54 inline void SetApprovalRuleTemplateId(const Aws::String& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = value; } 55 56 /** 57 * <p>The ID of the template that created the approval rule.</p> 58 */ SetApprovalRuleTemplateId(Aws::String && value)59 inline void SetApprovalRuleTemplateId(Aws::String&& value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId = std::move(value); } 60 61 /** 62 * <p>The ID of the template that created the approval rule.</p> 63 */ SetApprovalRuleTemplateId(const char * value)64 inline void SetApprovalRuleTemplateId(const char* value) { m_approvalRuleTemplateIdHasBeenSet = true; m_approvalRuleTemplateId.assign(value); } 65 66 /** 67 * <p>The ID of the template that created the approval rule.</p> 68 */ WithApprovalRuleTemplateId(const Aws::String & value)69 inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(const Aws::String& value) { SetApprovalRuleTemplateId(value); return *this;} 70 71 /** 72 * <p>The ID of the template that created the approval rule.</p> 73 */ WithApprovalRuleTemplateId(Aws::String && value)74 inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(Aws::String&& value) { SetApprovalRuleTemplateId(std::move(value)); return *this;} 75 76 /** 77 * <p>The ID of the template that created the approval rule.</p> 78 */ WithApprovalRuleTemplateId(const char * value)79 inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateId(const char* value) { SetApprovalRuleTemplateId(value); return *this;} 80 81 82 /** 83 * <p>The name of the template that created the approval rule.</p> 84 */ GetApprovalRuleTemplateName()85 inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; } 86 87 /** 88 * <p>The name of the template that created the approval rule.</p> 89 */ ApprovalRuleTemplateNameHasBeenSet()90 inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; } 91 92 /** 93 * <p>The name of the template that created the approval rule.</p> 94 */ SetApprovalRuleTemplateName(const Aws::String & value)95 inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; } 96 97 /** 98 * <p>The name of the template that created the approval rule.</p> 99 */ SetApprovalRuleTemplateName(Aws::String && value)100 inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); } 101 102 /** 103 * <p>The name of the template that created the approval rule.</p> 104 */ SetApprovalRuleTemplateName(const char * value)105 inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); } 106 107 /** 108 * <p>The name of the template that created the approval rule.</p> 109 */ WithApprovalRuleTemplateName(const Aws::String & value)110 inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;} 111 112 /** 113 * <p>The name of the template that created the approval rule.</p> 114 */ WithApprovalRuleTemplateName(Aws::String && value)115 inline OriginApprovalRuleTemplate& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;} 116 117 /** 118 * <p>The name of the template that created the approval rule.</p> 119 */ WithApprovalRuleTemplateName(const char * value)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 134