AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListEnabledControlsRequest.h
1
6#pragma once
7#include <aws/controltower/ControlTower_EXPORTS.h>
8#include <aws/controltower/ControlTowerRequest.h>
9#include <aws/controltower/model/EnabledControlFilter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ControlTower
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONTROLTOWER_API ListEnabledControlsRequest() = default;
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 "ListEnabledControls"; }
32
33 AWS_CONTROLTOWER_API Aws::String SerializePayload() const override;
34
35
37
41 inline const EnabledControlFilter& GetFilter() const { return m_filter; }
42 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
43 template<typename FilterT = EnabledControlFilter>
44 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
45 template<typename FilterT = EnabledControlFilter>
46 ListEnabledControlsRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
48
50
53 inline int GetMaxResults() const { return m_maxResults; }
54 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
55 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
56 inline ListEnabledControlsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
58
60
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 template<typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
68 template<typename NextTokenT = Aws::String>
69 ListEnabledControlsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
71
73
79 inline const Aws::String& GetTargetIdentifier() const { return m_targetIdentifier; }
80 inline bool TargetIdentifierHasBeenSet() const { return m_targetIdentifierHasBeenSet; }
81 template<typename TargetIdentifierT = Aws::String>
82 void SetTargetIdentifier(TargetIdentifierT&& value) { m_targetIdentifierHasBeenSet = true; m_targetIdentifier = std::forward<TargetIdentifierT>(value); }
83 template<typename TargetIdentifierT = Aws::String>
84 ListEnabledControlsRequest& WithTargetIdentifier(TargetIdentifierT&& value) { SetTargetIdentifier(std::forward<TargetIdentifierT>(value)); return *this;}
86 private:
87
88 EnabledControlFilter m_filter;
89 bool m_filterHasBeenSet = false;
90
91 int m_maxResults{0};
92 bool m_maxResultsHasBeenSet = false;
93
94 Aws::String m_nextToken;
95 bool m_nextTokenHasBeenSet = false;
96
97 Aws::String m_targetIdentifier;
98 bool m_targetIdentifierHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace ControlTower
103} // namespace Aws
ListEnabledControlsRequest & WithFilter(FilterT &&value)
AWS_CONTROLTOWER_API ListEnabledControlsRequest()=default
AWS_CONTROLTOWER_API Aws::String SerializePayload() const override
ListEnabledControlsRequest & WithNextToken(NextTokenT &&value)
ListEnabledControlsRequest & WithTargetIdentifier(TargetIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String