AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AddAttributesToFindingsRequest.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/inspector/InspectorRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/inspector/model/Attribute.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Inspector
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_INSPECTOR_API AddAttributesToFindingsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AddAttributesToFindings"; }
33
34 AWS_INSPECTOR_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::Vector<Aws::String>& GetFindingArns() const { return m_findingArns; }
44 inline bool FindingArnsHasBeenSet() const { return m_findingArnsHasBeenSet; }
45 template<typename FindingArnsT = Aws::Vector<Aws::String>>
46 void SetFindingArns(FindingArnsT&& value) { m_findingArnsHasBeenSet = true; m_findingArns = std::forward<FindingArnsT>(value); }
47 template<typename FindingArnsT = Aws::Vector<Aws::String>>
48 AddAttributesToFindingsRequest& WithFindingArns(FindingArnsT&& value) { SetFindingArns(std::forward<FindingArnsT>(value)); return *this;}
49 template<typename FindingArnsT = Aws::String>
50 AddAttributesToFindingsRequest& AddFindingArns(FindingArnsT&& value) { m_findingArnsHasBeenSet = true; m_findingArns.emplace_back(std::forward<FindingArnsT>(value)); return *this; }
52
54
57 inline const Aws::Vector<Attribute>& GetAttributes() const { return m_attributes; }
58 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
59 template<typename AttributesT = Aws::Vector<Attribute>>
60 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
61 template<typename AttributesT = Aws::Vector<Attribute>>
62 AddAttributesToFindingsRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
63 template<typename AttributesT = Attribute>
64 AddAttributesToFindingsRequest& AddAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes.emplace_back(std::forward<AttributesT>(value)); return *this; }
66 private:
67
68 Aws::Vector<Aws::String> m_findingArns;
69 bool m_findingArnsHasBeenSet = false;
70
71 Aws::Vector<Attribute> m_attributes;
72 bool m_attributesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Inspector
77} // namespace Aws
AddAttributesToFindingsRequest & AddAttributes(AttributesT &&value)
AddAttributesToFindingsRequest & WithFindingArns(FindingArnsT &&value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddAttributesToFindingsRequest & AddFindingArns(FindingArnsT &&value)
AddAttributesToFindingsRequest & WithAttributes(AttributesT &&value)
AWS_INSPECTOR_API Aws::String SerializePayload() const override
AWS_INSPECTOR_API AddAttributesToFindingsRequest()=default
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