AWS SDK for C++  1.9.66
AWS SDK for C++
AddAttributesToFindingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Inspector
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::Vector<Aws::String>& GetFindingArns() const{ return m_findingArns; }
43 
47  inline bool FindingArnsHasBeenSet() const { return m_findingArnsHasBeenSet; }
48 
52  inline void SetFindingArns(const Aws::Vector<Aws::String>& value) { m_findingArnsHasBeenSet = true; m_findingArns = value; }
53 
57  inline void SetFindingArns(Aws::Vector<Aws::String>&& value) { m_findingArnsHasBeenSet = true; m_findingArns = std::move(value); }
58 
62  inline AddAttributesToFindingsRequest& WithFindingArns(const Aws::Vector<Aws::String>& value) { SetFindingArns(value); return *this;}
63 
67  inline AddAttributesToFindingsRequest& WithFindingArns(Aws::Vector<Aws::String>&& value) { SetFindingArns(std::move(value)); return *this;}
68 
72  inline AddAttributesToFindingsRequest& AddFindingArns(const Aws::String& value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(value); return *this; }
73 
77  inline AddAttributesToFindingsRequest& AddFindingArns(Aws::String&& value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(std::move(value)); return *this; }
78 
82  inline AddAttributesToFindingsRequest& AddFindingArns(const char* value) { m_findingArnsHasBeenSet = true; m_findingArns.push_back(value); return *this; }
83 
84 
88  inline const Aws::Vector<Attribute>& GetAttributes() const{ return m_attributes; }
89 
93  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
94 
98  inline void SetAttributes(const Aws::Vector<Attribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
99 
103  inline void SetAttributes(Aws::Vector<Attribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
104 
108  inline AddAttributesToFindingsRequest& WithAttributes(const Aws::Vector<Attribute>& value) { SetAttributes(value); return *this;}
109 
113  inline AddAttributesToFindingsRequest& WithAttributes(Aws::Vector<Attribute>&& value) { SetAttributes(std::move(value)); return *this;}
114 
118  inline AddAttributesToFindingsRequest& AddAttributes(const Attribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
119 
123  inline AddAttributesToFindingsRequest& AddAttributes(Attribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
124 
125  private:
126 
127  Aws::Vector<Aws::String> m_findingArns;
128  bool m_findingArnsHasBeenSet;
129 
130  Aws::Vector<Attribute> m_attributes;
131  bool m_attributesHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace Inspector
136 } // namespace Aws
InspectorRequest.h
Inspector_EXPORTS.h
Aws::Inspector::Model::AddAttributesToFindingsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Inspector::Model::AddAttributesToFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddAttributesToFindingsRequest.h:32
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Inspector::Model::AddAttributesToFindingsRequest::FindingArnsHasBeenSet
bool FindingArnsHasBeenSet() const
Definition: AddAttributesToFindingsRequest.h:47
Aws::Inspector::Model::AddAttributesToFindingsRequest::WithAttributes
AddAttributesToFindingsRequest & WithAttributes(const Aws::Vector< Attribute > &value)
Definition: AddAttributesToFindingsRequest.h:108
Aws::Inspector::Model::AddAttributesToFindingsRequest::AddAttributes
AddAttributesToFindingsRequest & AddAttributes(Attribute &&value)
Definition: AddAttributesToFindingsRequest.h:123
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_INSPECTOR_API
#define AWS_INSPECTOR_API
Definition: Inspector_EXPORTS.h:28
Aws::Inspector::Model::AddAttributesToFindingsRequest::WithFindingArns
AddAttributesToFindingsRequest & WithFindingArns(Aws::Vector< Aws::String > &&value)
Definition: AddAttributesToFindingsRequest.h:67
Aws::Inspector::Model::AddAttributesToFindingsRequest::SetAttributes
void SetAttributes(Aws::Vector< Attribute > &&value)
Definition: AddAttributesToFindingsRequest.h:103
AWSVector.h
Aws::Inspector::Model::AddAttributesToFindingsRequest::AddAttributes
AddAttributesToFindingsRequest & AddAttributes(const Attribute &value)
Definition: AddAttributesToFindingsRequest.h:118
Aws::Inspector::InspectorRequest
Definition: InspectorRequest.h:17
Attribute.h
Aws::Inspector::Model::AddAttributesToFindingsRequest::GetFindingArns
const Aws::Vector< Aws::String > & GetFindingArns() const
Definition: AddAttributesToFindingsRequest.h:42
AWSString.h
Aws::Inspector::Model::AddAttributesToFindingsRequest::AddFindingArns
AddAttributesToFindingsRequest & AddFindingArns(const Aws::String &value)
Definition: AddAttributesToFindingsRequest.h:72
Aws::Inspector::Model::AddAttributesToFindingsRequest::AddAttributesToFindingsRequest
AddAttributesToFindingsRequest()
Aws::Inspector::Model::AddAttributesToFindingsRequest::SetFindingArns
void SetFindingArns(Aws::Vector< Aws::String > &&value)
Definition: AddAttributesToFindingsRequest.h:57
Aws::Inspector::Model::AddAttributesToFindingsRequest::GetAttributes
const Aws::Vector< Attribute > & GetAttributes() const
Definition: AddAttributesToFindingsRequest.h:88
Aws::Inspector::Model::Attribute
Definition: Attribute.h:34
Aws::Inspector::Model::AddAttributesToFindingsRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: AddAttributesToFindingsRequest.h:93
Aws::Inspector::Model::AddAttributesToFindingsRequest::AddFindingArns
AddAttributesToFindingsRequest & AddFindingArns(const char *value)
Definition: AddAttributesToFindingsRequest.h:82
Aws::Inspector::Model::AddAttributesToFindingsRequest::SetFindingArns
void SetFindingArns(const Aws::Vector< Aws::String > &value)
Definition: AddAttributesToFindingsRequest.h:52
Aws
Definition: AccessManagementClient.h:15
Aws::Inspector::Model::AddAttributesToFindingsRequest::AddFindingArns
AddAttributesToFindingsRequest & AddFindingArns(Aws::String &&value)
Definition: AddAttributesToFindingsRequest.h:77
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Inspector::Model::AddAttributesToFindingsRequest
Definition: AddAttributesToFindingsRequest.h:24
Aws::Inspector::Model::AddAttributesToFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Inspector::Model::AddAttributesToFindingsRequest::WithAttributes
AddAttributesToFindingsRequest & WithAttributes(Aws::Vector< Attribute > &&value)
Definition: AddAttributesToFindingsRequest.h:113
Aws::Inspector::Model::AddAttributesToFindingsRequest::SetAttributes
void SetAttributes(const Aws::Vector< Attribute > &value)
Definition: AddAttributesToFindingsRequest.h:98
Aws::Inspector::Model::AddAttributesToFindingsRequest::WithFindingArns
AddAttributesToFindingsRequest & WithFindingArns(const Aws::Vector< Aws::String > &value)
Definition: AddAttributesToFindingsRequest.h:62