AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFindingArns(const Aws::Vector<Aws::String>& value) { m_findingArnsHasBeenSet = true; m_findingArns = value; }
46 inline void SetFindingArns(Aws::Vector<Aws::String>&& value) { m_findingArnsHasBeenSet = true; m_findingArns = std::move(value); }
49 inline AddAttributesToFindingsRequest& AddFindingArns(const Aws::String& value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(value); return *this; }
50 inline AddAttributesToFindingsRequest& AddFindingArns(Aws::String&& value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(std::move(value)); return *this; }
51 inline AddAttributesToFindingsRequest& AddFindingArns(const char* value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(value); return *this; }
53
55
58 inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
59 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
60 inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
61 inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
63 inline AddAttributesToFindingsRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
64 inline AddAttributesToFindingsRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
65 inline AddAttributesToFindingsRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
67 private:
68
69 Aws::Vector<Aws::String> m_findingArns;
70 bool m_findingArnsHasBeenSet = false;
71
72 Aws::Vector<Attribute> m_attributes;
73 bool m_attributesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Inspector
78} // namespace Aws
AddAttributesToFindingsRequest & WithAttributes(const Aws::Vector< Attribute > &value)
void SetFindingArns(const Aws::Vector< Aws::String > &value)
AddAttributesToFindingsRequest & AddFindingArns(Aws::String &&value)
AddAttributesToFindingsRequest & AddAttributes(Attribute &&value)
AWS_INSPECTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddAttributesToFindingsRequest & AddFindingArns(const char *value)
AddAttributesToFindingsRequest & WithFindingArns(Aws::Vector< Aws::String > &&value)
AddAttributesToFindingsRequest & WithFindingArns(const Aws::Vector< Aws::String > &value)
AWS_INSPECTOR_API Aws::String SerializePayload() const override
AddAttributesToFindingsRequest & AddFindingArns(const Aws::String &value)
AddAttributesToFindingsRequest & WithAttributes(Aws::Vector< Attribute > &&value)
AddAttributesToFindingsRequest & AddAttributes(const Attribute &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