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/securityhub/SecurityHub_EXPORTS.h>
8 #include <aws/securityhub/SecurityHubRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/securityhub/model/ControlStatus.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SecurityHub
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_SECURITYHUB_API UpdateStandardsControlRequest : public SecurityHubRequest
23   {
24   public:
25     UpdateStandardsControlRequest();
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 "UpdateStandardsControl"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The ARN of the security standard control to enable or disable.</p>
38      */
GetStandardsControlArn()39     inline const Aws::String& GetStandardsControlArn() const{ return m_standardsControlArn; }
40 
41     /**
42      * <p>The ARN of the security standard control to enable or disable.</p>
43      */
StandardsControlArnHasBeenSet()44     inline bool StandardsControlArnHasBeenSet() const { return m_standardsControlArnHasBeenSet; }
45 
46     /**
47      * <p>The ARN of the security standard control to enable or disable.</p>
48      */
SetStandardsControlArn(const Aws::String & value)49     inline void SetStandardsControlArn(const Aws::String& value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn = value; }
50 
51     /**
52      * <p>The ARN of the security standard control to enable or disable.</p>
53      */
SetStandardsControlArn(Aws::String && value)54     inline void SetStandardsControlArn(Aws::String&& value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn = std::move(value); }
55 
56     /**
57      * <p>The ARN of the security standard control to enable or disable.</p>
58      */
SetStandardsControlArn(const char * value)59     inline void SetStandardsControlArn(const char* value) { m_standardsControlArnHasBeenSet = true; m_standardsControlArn.assign(value); }
60 
61     /**
62      * <p>The ARN of the security standard control to enable or disable.</p>
63      */
WithStandardsControlArn(const Aws::String & value)64     inline UpdateStandardsControlRequest& WithStandardsControlArn(const Aws::String& value) { SetStandardsControlArn(value); return *this;}
65 
66     /**
67      * <p>The ARN of the security standard control to enable or disable.</p>
68      */
WithStandardsControlArn(Aws::String && value)69     inline UpdateStandardsControlRequest& WithStandardsControlArn(Aws::String&& value) { SetStandardsControlArn(std::move(value)); return *this;}
70 
71     /**
72      * <p>The ARN of the security standard control to enable or disable.</p>
73      */
WithStandardsControlArn(const char * value)74     inline UpdateStandardsControlRequest& WithStandardsControlArn(const char* value) { SetStandardsControlArn(value); return *this;}
75 
76 
77     /**
78      * <p>The updated status of the security standard control.</p>
79      */
GetControlStatus()80     inline const ControlStatus& GetControlStatus() const{ return m_controlStatus; }
81 
82     /**
83      * <p>The updated status of the security standard control.</p>
84      */
ControlStatusHasBeenSet()85     inline bool ControlStatusHasBeenSet() const { return m_controlStatusHasBeenSet; }
86 
87     /**
88      * <p>The updated status of the security standard control.</p>
89      */
SetControlStatus(const ControlStatus & value)90     inline void SetControlStatus(const ControlStatus& value) { m_controlStatusHasBeenSet = true; m_controlStatus = value; }
91 
92     /**
93      * <p>The updated status of the security standard control.</p>
94      */
SetControlStatus(ControlStatus && value)95     inline void SetControlStatus(ControlStatus&& value) { m_controlStatusHasBeenSet = true; m_controlStatus = std::move(value); }
96 
97     /**
98      * <p>The updated status of the security standard control.</p>
99      */
WithControlStatus(const ControlStatus & value)100     inline UpdateStandardsControlRequest& WithControlStatus(const ControlStatus& value) { SetControlStatus(value); return *this;}
101 
102     /**
103      * <p>The updated status of the security standard control.</p>
104      */
WithControlStatus(ControlStatus && value)105     inline UpdateStandardsControlRequest& WithControlStatus(ControlStatus&& value) { SetControlStatus(std::move(value)); return *this;}
106 
107 
108     /**
109      * <p>A description of the reason why you are disabling a security standard
110      * control. If you are disabling a control, then this is required.</p>
111      */
GetDisabledReason()112     inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; }
113 
114     /**
115      * <p>A description of the reason why you are disabling a security standard
116      * control. If you are disabling a control, then this is required.</p>
117      */
DisabledReasonHasBeenSet()118     inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; }
119 
120     /**
121      * <p>A description of the reason why you are disabling a security standard
122      * control. If you are disabling a control, then this is required.</p>
123      */
SetDisabledReason(const Aws::String & value)124     inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; }
125 
126     /**
127      * <p>A description of the reason why you are disabling a security standard
128      * control. If you are disabling a control, then this is required.</p>
129      */
SetDisabledReason(Aws::String && value)130     inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::move(value); }
131 
132     /**
133      * <p>A description of the reason why you are disabling a security standard
134      * control. If you are disabling a control, then this is required.</p>
135      */
SetDisabledReason(const char * value)136     inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); }
137 
138     /**
139      * <p>A description of the reason why you are disabling a security standard
140      * control. If you are disabling a control, then this is required.</p>
141      */
WithDisabledReason(const Aws::String & value)142     inline UpdateStandardsControlRequest& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;}
143 
144     /**
145      * <p>A description of the reason why you are disabling a security standard
146      * control. If you are disabling a control, then this is required.</p>
147      */
WithDisabledReason(Aws::String && value)148     inline UpdateStandardsControlRequest& WithDisabledReason(Aws::String&& value) { SetDisabledReason(std::move(value)); return *this;}
149 
150     /**
151      * <p>A description of the reason why you are disabling a security standard
152      * control. If you are disabling a control, then this is required.</p>
153      */
WithDisabledReason(const char * value)154     inline UpdateStandardsControlRequest& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;}
155 
156   private:
157 
158     Aws::String m_standardsControlArn;
159     bool m_standardsControlArnHasBeenSet;
160 
161     ControlStatus m_controlStatus;
162     bool m_controlStatusHasBeenSet;
163 
164     Aws::String m_disabledReason;
165     bool m_disabledReasonHasBeenSet;
166   };
167 
168 } // namespace Model
169 } // namespace SecurityHub
170 } // namespace Aws
171