AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
BatchGetControlRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/ControlKey.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Assurance {
17namespace Model {
18
22 public:
23 AWS_ASSURANCE_API BatchGetControlRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchGetControl"; }
30
31 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
40 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
41 template <typename EnvironmentArnT = Aws::String>
42 void SetEnvironmentArn(EnvironmentArnT&& value) {
43 m_environmentArnHasBeenSet = true;
44 m_environmentArn = std::forward<EnvironmentArnT>(value);
45 }
46 template <typename EnvironmentArnT = Aws::String>
47 BatchGetControlRequest& WithEnvironmentArn(EnvironmentArnT&& value) {
48 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Vector<ControlKey>& GetKeys() const { return m_keys; }
59 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
60 template <typename KeysT = Aws::Vector<ControlKey>>
61 void SetKeys(KeysT&& value) {
62 m_keysHasBeenSet = true;
63 m_keys = std::forward<KeysT>(value);
64 }
65 template <typename KeysT = Aws::Vector<ControlKey>>
67 SetKeys(std::forward<KeysT>(value));
68 return *this;
69 }
70 template <typename KeysT = ControlKey>
72 m_keysHasBeenSet = true;
73 m_keys.emplace_back(std::forward<KeysT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_environmentArn;
79
81 bool m_environmentArnHasBeenSet = false;
82 bool m_keysHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Assurance
87} // namespace Aws
BatchGetControlRequest & WithEnvironmentArn(EnvironmentArnT &&value)
AWS_ASSURANCE_API Aws::String SerializePayload() const override
BatchGetControlRequest & WithKeys(KeysT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchGetControlRequest & AddKeys(KeysT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ASSURANCE_API BatchGetControlRequest()=default
const Aws::Vector< ControlKey > & GetKeys() const
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