AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetComplianceDetailsByResourceRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/config/model/ComplianceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
27 {
28 public:
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetComplianceDetailsByResource"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
47 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
48 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
50 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
51 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
53 inline GetComplianceDetailsByResourceRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
54 inline GetComplianceDetailsByResourceRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
56
58
62 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
65 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
66 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
68 inline GetComplianceDetailsByResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
69 inline GetComplianceDetailsByResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
71
73
79 inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const{ return m_complianceTypes; }
80 inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; }
81 inline void SetComplianceTypes(const Aws::Vector<ComplianceType>& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = value; }
82 inline void SetComplianceTypes(Aws::Vector<ComplianceType>&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = std::move(value); }
85 inline GetComplianceDetailsByResourceRequest& AddComplianceTypes(const ComplianceType& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
86 inline GetComplianceDetailsByResourceRequest& AddComplianceTypes(ComplianceType&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(std::move(value)); return *this; }
88
90
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline GetComplianceDetailsByResourceRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline GetComplianceDetailsByResourceRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline GetComplianceDetailsByResourceRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103
105
111 inline const Aws::String& GetResourceEvaluationId() const{ return m_resourceEvaluationId; }
112 inline bool ResourceEvaluationIdHasBeenSet() const { return m_resourceEvaluationIdHasBeenSet; }
113 inline void SetResourceEvaluationId(const Aws::String& value) { m_resourceEvaluationIdHasBeenSet = true; m_resourceEvaluationId = value; }
114 inline void SetResourceEvaluationId(Aws::String&& value) { m_resourceEvaluationIdHasBeenSet = true; m_resourceEvaluationId = std::move(value); }
115 inline void SetResourceEvaluationId(const char* value) { m_resourceEvaluationIdHasBeenSet = true; m_resourceEvaluationId.assign(value); }
120 private:
121
122 Aws::String m_resourceType;
123 bool m_resourceTypeHasBeenSet = false;
124
125 Aws::String m_resourceId;
126 bool m_resourceIdHasBeenSet = false;
127
128 Aws::Vector<ComplianceType> m_complianceTypes;
129 bool m_complianceTypesHasBeenSet = false;
130
131 Aws::String m_nextToken;
132 bool m_nextTokenHasBeenSet = false;
133
134 Aws::String m_resourceEvaluationId;
135 bool m_resourceEvaluationIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ConfigService
140} // namespace Aws
GetComplianceDetailsByResourceRequest & WithComplianceTypes(Aws::Vector< ComplianceType > &&value)
GetComplianceDetailsByResourceRequest & WithResourceEvaluationId(const char *value)
GetComplianceDetailsByResourceRequest & WithResourceType(const Aws::String &value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
GetComplianceDetailsByResourceRequest & WithNextToken(Aws::String &&value)
GetComplianceDetailsByResourceRequest & AddComplianceTypes(ComplianceType &&value)
GetComplianceDetailsByResourceRequest & WithResourceId(const char *value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetComplianceDetailsByResourceRequest & WithResourceId(Aws::String &&value)
GetComplianceDetailsByResourceRequest & WithResourceType(Aws::String &&value)
GetComplianceDetailsByResourceRequest & WithResourceId(const Aws::String &value)
GetComplianceDetailsByResourceRequest & WithComplianceTypes(const Aws::Vector< ComplianceType > &value)
GetComplianceDetailsByResourceRequest & WithNextToken(const char *value)
GetComplianceDetailsByResourceRequest & WithResourceEvaluationId(Aws::String &&value)
GetComplianceDetailsByResourceRequest & WithNextToken(const Aws::String &value)
GetComplianceDetailsByResourceRequest & WithResourceType(const char *value)
GetComplianceDetailsByResourceRequest & AddComplianceTypes(const ComplianceType &value)
GetComplianceDetailsByResourceRequest & WithResourceEvaluationId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector