AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeComplianceByResourceRequest.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:
29 AWS_CONFIGSERVICE_API DescribeComplianceByResourceRequest() = default;
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 "DescribeComplianceByResource"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
49 inline const Aws::String& GetResourceType() const { return m_resourceType; }
50 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
51 template<typename ResourceTypeT = Aws::String>
52 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
53 template<typename ResourceTypeT = Aws::String>
54 DescribeComplianceByResourceRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
56
58
63 inline const Aws::String& GetResourceId() const { return m_resourceId; }
64 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
65 template<typename ResourceIdT = Aws::String>
66 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
67 template<typename ResourceIdT = Aws::String>
68 DescribeComplianceByResourceRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
70
72
75 inline const Aws::Vector<ComplianceType>& GetComplianceTypes() const { return m_complianceTypes; }
76 inline bool ComplianceTypesHasBeenSet() const { return m_complianceTypesHasBeenSet; }
77 template<typename ComplianceTypesT = Aws::Vector<ComplianceType>>
78 void SetComplianceTypes(ComplianceTypesT&& value) { m_complianceTypesHasBeenSet = true; m_complianceTypes = std::forward<ComplianceTypesT>(value); }
79 template<typename ComplianceTypesT = Aws::Vector<ComplianceType>>
80 DescribeComplianceByResourceRequest& WithComplianceTypes(ComplianceTypesT&& value) { SetComplianceTypes(std::forward<ComplianceTypesT>(value)); return *this;}
81 inline DescribeComplianceByResourceRequest& AddComplianceTypes(ComplianceType value) { m_complianceTypesHasBeenSet = true; m_complianceTypes.push_back(value); return *this; }
83
85
90 inline int GetLimit() const { return m_limit; }
91 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
92 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
93 inline DescribeComplianceByResourceRequest& WithLimit(int value) { SetLimit(value); return *this;}
95
97
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template<typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
105 template<typename NextTokenT = Aws::String>
106 DescribeComplianceByResourceRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
108 private:
109
110 Aws::String m_resourceType;
111 bool m_resourceTypeHasBeenSet = false;
112
113 Aws::String m_resourceId;
114 bool m_resourceIdHasBeenSet = false;
115
116 Aws::Vector<ComplianceType> m_complianceTypes;
117 bool m_complianceTypesHasBeenSet = false;
118
119 int m_limit{0};
120 bool m_limitHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace ConfigService
128} // namespace Aws
DescribeComplianceByResourceRequest & WithNextToken(NextTokenT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API DescribeComplianceByResourceRequest()=default
DescribeComplianceByResourceRequest & AddComplianceTypes(ComplianceType value)
DescribeComplianceByResourceRequest & WithResourceId(ResourceIdT &&value)
DescribeComplianceByResourceRequest & WithResourceType(ResourceTypeT &&value)
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeComplianceByResourceRequest & WithComplianceTypes(ComplianceTypesT &&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