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/auditmanager/AuditManager_EXPORTS.h> 8 #include <aws/auditmanager/AuditManagerRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/auditmanager/model/ControlSetStatus.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 namespace AuditManager 16 { 17 namespace Model 18 { 19 20 /** 21 */ 22 class AWS_AUDITMANAGER_API UpdateAssessmentControlSetStatusRequest : public AuditManagerRequest 23 { 24 public: 25 UpdateAssessmentControlSetStatusRequest(); 26 27 // Service request name is the Operation name which will send this request out, 28 // each operation should has unique request name, so that we can get operation's name from this request. 29 // Note: this is not true for response, multiple operations may have the same response name, 30 // so we can not get operation's name from response. GetServiceRequestName()31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAssessmentControlSetStatus"; } 32 33 Aws::String SerializePayload() const override; 34 35 36 /** 37 * <p> The identifier for the specified assessment. </p> 38 */ GetAssessmentId()39 inline const Aws::String& GetAssessmentId() const{ return m_assessmentId; } 40 41 /** 42 * <p> The identifier for the specified assessment. </p> 43 */ AssessmentIdHasBeenSet()44 inline bool AssessmentIdHasBeenSet() const { return m_assessmentIdHasBeenSet; } 45 46 /** 47 * <p> The identifier for the specified assessment. </p> 48 */ SetAssessmentId(const Aws::String & value)49 inline void SetAssessmentId(const Aws::String& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = value; } 50 51 /** 52 * <p> The identifier for the specified assessment. </p> 53 */ SetAssessmentId(Aws::String && value)54 inline void SetAssessmentId(Aws::String&& value) { m_assessmentIdHasBeenSet = true; m_assessmentId = std::move(value); } 55 56 /** 57 * <p> The identifier for the specified assessment. </p> 58 */ SetAssessmentId(const char * value)59 inline void SetAssessmentId(const char* value) { m_assessmentIdHasBeenSet = true; m_assessmentId.assign(value); } 60 61 /** 62 * <p> The identifier for the specified assessment. </p> 63 */ WithAssessmentId(const Aws::String & value)64 inline UpdateAssessmentControlSetStatusRequest& WithAssessmentId(const Aws::String& value) { SetAssessmentId(value); return *this;} 65 66 /** 67 * <p> The identifier for the specified assessment. </p> 68 */ WithAssessmentId(Aws::String && value)69 inline UpdateAssessmentControlSetStatusRequest& WithAssessmentId(Aws::String&& value) { SetAssessmentId(std::move(value)); return *this;} 70 71 /** 72 * <p> The identifier for the specified assessment. </p> 73 */ WithAssessmentId(const char * value)74 inline UpdateAssessmentControlSetStatusRequest& WithAssessmentId(const char* value) { SetAssessmentId(value); return *this;} 75 76 77 /** 78 * <p> The identifier for the specified control set. </p> 79 */ GetControlSetId()80 inline const Aws::String& GetControlSetId() const{ return m_controlSetId; } 81 82 /** 83 * <p> The identifier for the specified control set. </p> 84 */ ControlSetIdHasBeenSet()85 inline bool ControlSetIdHasBeenSet() const { return m_controlSetIdHasBeenSet; } 86 87 /** 88 * <p> The identifier for the specified control set. </p> 89 */ SetControlSetId(const Aws::String & value)90 inline void SetControlSetId(const Aws::String& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = value; } 91 92 /** 93 * <p> The identifier for the specified control set. </p> 94 */ SetControlSetId(Aws::String && value)95 inline void SetControlSetId(Aws::String&& value) { m_controlSetIdHasBeenSet = true; m_controlSetId = std::move(value); } 96 97 /** 98 * <p> The identifier for the specified control set. </p> 99 */ SetControlSetId(const char * value)100 inline void SetControlSetId(const char* value) { m_controlSetIdHasBeenSet = true; m_controlSetId.assign(value); } 101 102 /** 103 * <p> The identifier for the specified control set. </p> 104 */ WithControlSetId(const Aws::String & value)105 inline UpdateAssessmentControlSetStatusRequest& WithControlSetId(const Aws::String& value) { SetControlSetId(value); return *this;} 106 107 /** 108 * <p> The identifier for the specified control set. </p> 109 */ WithControlSetId(Aws::String && value)110 inline UpdateAssessmentControlSetStatusRequest& WithControlSetId(Aws::String&& value) { SetControlSetId(std::move(value)); return *this;} 111 112 /** 113 * <p> The identifier for the specified control set. </p> 114 */ WithControlSetId(const char * value)115 inline UpdateAssessmentControlSetStatusRequest& WithControlSetId(const char* value) { SetControlSetId(value); return *this;} 116 117 118 /** 119 * <p> The status of the control set that is being updated. </p> 120 */ GetStatus()121 inline const ControlSetStatus& GetStatus() const{ return m_status; } 122 123 /** 124 * <p> The status of the control set that is being updated. </p> 125 */ StatusHasBeenSet()126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } 127 128 /** 129 * <p> The status of the control set that is being updated. </p> 130 */ SetStatus(const ControlSetStatus & value)131 inline void SetStatus(const ControlSetStatus& value) { m_statusHasBeenSet = true; m_status = value; } 132 133 /** 134 * <p> The status of the control set that is being updated. </p> 135 */ SetStatus(ControlSetStatus && value)136 inline void SetStatus(ControlSetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } 137 138 /** 139 * <p> The status of the control set that is being updated. </p> 140 */ WithStatus(const ControlSetStatus & value)141 inline UpdateAssessmentControlSetStatusRequest& WithStatus(const ControlSetStatus& value) { SetStatus(value); return *this;} 142 143 /** 144 * <p> The status of the control set that is being updated. </p> 145 */ WithStatus(ControlSetStatus && value)146 inline UpdateAssessmentControlSetStatusRequest& WithStatus(ControlSetStatus&& value) { SetStatus(std::move(value)); return *this;} 147 148 149 /** 150 * <p> The comment related to the status update. </p> 151 */ GetComment()152 inline const Aws::String& GetComment() const{ return m_comment; } 153 154 /** 155 * <p> The comment related to the status update. </p> 156 */ CommentHasBeenSet()157 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } 158 159 /** 160 * <p> The comment related to the status update. </p> 161 */ SetComment(const Aws::String & value)162 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } 163 164 /** 165 * <p> The comment related to the status update. </p> 166 */ SetComment(Aws::String && value)167 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } 168 169 /** 170 * <p> The comment related to the status update. </p> 171 */ SetComment(const char * value)172 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } 173 174 /** 175 * <p> The comment related to the status update. </p> 176 */ WithComment(const Aws::String & value)177 inline UpdateAssessmentControlSetStatusRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;} 178 179 /** 180 * <p> The comment related to the status update. </p> 181 */ WithComment(Aws::String && value)182 inline UpdateAssessmentControlSetStatusRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} 183 184 /** 185 * <p> The comment related to the status update. </p> 186 */ WithComment(const char * value)187 inline UpdateAssessmentControlSetStatusRequest& WithComment(const char* value) { SetComment(value); return *this;} 188 189 private: 190 191 Aws::String m_assessmentId; 192 bool m_assessmentIdHasBeenSet; 193 194 Aws::String m_controlSetId; 195 bool m_controlSetIdHasBeenSet; 196 197 ControlSetStatus m_status; 198 bool m_statusHasBeenSet; 199 200 Aws::String m_comment; 201 bool m_commentHasBeenSet; 202 }; 203 204 } // namespace Model 205 } // namespace AuditManager 206 } // namespace Aws 207