AWS SDK for C++  1.9.129
AWS SDK for C++
StartOnDemandAuditTaskRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IoT
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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.
31  inline virtual const char* GetServiceRequestName() const override { return "StartOnDemandAuditTask"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
43  inline const Aws::Vector<Aws::String>& GetTargetCheckNames() const{ return m_targetCheckNames; }
44 
52  inline bool TargetCheckNamesHasBeenSet() const { return m_targetCheckNamesHasBeenSet; }
53 
61  inline void SetTargetCheckNames(const Aws::Vector<Aws::String>& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = value; }
62 
70  inline void SetTargetCheckNames(Aws::Vector<Aws::String>&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames = std::move(value); }
71 
79  inline StartOnDemandAuditTaskRequest& WithTargetCheckNames(const Aws::Vector<Aws::String>& value) { SetTargetCheckNames(value); return *this;}
80 
88  inline StartOnDemandAuditTaskRequest& WithTargetCheckNames(Aws::Vector<Aws::String>&& value) { SetTargetCheckNames(std::move(value)); return *this;}
89 
97  inline StartOnDemandAuditTaskRequest& AddTargetCheckNames(const Aws::String& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
98 
106  inline StartOnDemandAuditTaskRequest& AddTargetCheckNames(Aws::String&& value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(std::move(value)); return *this; }
107 
115  inline StartOnDemandAuditTaskRequest& AddTargetCheckNames(const char* value) { m_targetCheckNamesHasBeenSet = true; m_targetCheckNames.push_back(value); return *this; }
116 
117  private:
118 
119  Aws::Vector<Aws::String> m_targetCheckNames;
120  bool m_targetCheckNamesHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace IoT
125 } // namespace Aws
Aws::IoT::Model::StartOnDemandAuditTaskRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::StartOnDemandAuditTaskRequest
Definition: StartOnDemandAuditTaskRequest.h:23
AWSVector.h
Aws::IoT::Model::StartOnDemandAuditTaskRequest::WithTargetCheckNames
StartOnDemandAuditTaskRequest & WithTargetCheckNames(const Aws::Vector< Aws::String > &value)
Definition: StartOnDemandAuditTaskRequest.h:79
Aws::IoT::Model::StartOnDemandAuditTaskRequest::AddTargetCheckNames
StartOnDemandAuditTaskRequest & AddTargetCheckNames(const char *value)
Definition: StartOnDemandAuditTaskRequest.h:115
Aws::IoT::Model::StartOnDemandAuditTaskRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartOnDemandAuditTaskRequest.h:31
Aws::IoT::Model::StartOnDemandAuditTaskRequest::TargetCheckNamesHasBeenSet
bool TargetCheckNamesHasBeenSet() const
Definition: StartOnDemandAuditTaskRequest.h:52
Aws::IoT::Model::StartOnDemandAuditTaskRequest::GetTargetCheckNames
const Aws::Vector< Aws::String > & GetTargetCheckNames() const
Definition: StartOnDemandAuditTaskRequest.h:43
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::StartOnDemandAuditTaskRequest::AddTargetCheckNames
StartOnDemandAuditTaskRequest & AddTargetCheckNames(const Aws::String &value)
Definition: StartOnDemandAuditTaskRequest.h:97
Aws::IoT::Model::StartOnDemandAuditTaskRequest::AddTargetCheckNames
StartOnDemandAuditTaskRequest & AddTargetCheckNames(Aws::String &&value)
Definition: StartOnDemandAuditTaskRequest.h:106
Aws::IoT::Model::StartOnDemandAuditTaskRequest::SetTargetCheckNames
void SetTargetCheckNames(Aws::Vector< Aws::String > &&value)
Definition: StartOnDemandAuditTaskRequest.h:70
Aws::IoT::Model::StartOnDemandAuditTaskRequest::StartOnDemandAuditTaskRequest
StartOnDemandAuditTaskRequest()
Aws::IoT::Model::StartOnDemandAuditTaskRequest::WithTargetCheckNames
StartOnDemandAuditTaskRequest & WithTargetCheckNames(Aws::Vector< Aws::String > &&value)
Definition: StartOnDemandAuditTaskRequest.h:88
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
IoT_EXPORTS.h
Aws::IoT::Model::StartOnDemandAuditTaskRequest::SetTargetCheckNames
void SetTargetCheckNames(const Aws::Vector< Aws::String > &value)
Definition: StartOnDemandAuditTaskRequest.h:61