AWS SDK for C++  1.9.106
AWS SDK for C++
InsightResults.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SecurityHub
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
47  inline const Aws::String& GetInsightArn() const{ return m_insightArn; }
48 
53  inline bool InsightArnHasBeenSet() const { return m_insightArnHasBeenSet; }
54 
59  inline void SetInsightArn(const Aws::String& value) { m_insightArnHasBeenSet = true; m_insightArn = value; }
60 
65  inline void SetInsightArn(Aws::String&& value) { m_insightArnHasBeenSet = true; m_insightArn = std::move(value); }
66 
71  inline void SetInsightArn(const char* value) { m_insightArnHasBeenSet = true; m_insightArn.assign(value); }
72 
77  inline InsightResults& WithInsightArn(const Aws::String& value) { SetInsightArn(value); return *this;}
78 
83  inline InsightResults& WithInsightArn(Aws::String&& value) { SetInsightArn(std::move(value)); return *this;}
84 
89  inline InsightResults& WithInsightArn(const char* value) { SetInsightArn(value); return *this;}
90 
91 
96  inline const Aws::String& GetGroupByAttribute() const{ return m_groupByAttribute; }
97 
102  inline bool GroupByAttributeHasBeenSet() const { return m_groupByAttributeHasBeenSet; }
103 
108  inline void SetGroupByAttribute(const Aws::String& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = value; }
109 
114  inline void SetGroupByAttribute(Aws::String&& value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute = std::move(value); }
115 
120  inline void SetGroupByAttribute(const char* value) { m_groupByAttributeHasBeenSet = true; m_groupByAttribute.assign(value); }
121 
126  inline InsightResults& WithGroupByAttribute(const Aws::String& value) { SetGroupByAttribute(value); return *this;}
127 
132  inline InsightResults& WithGroupByAttribute(Aws::String&& value) { SetGroupByAttribute(std::move(value)); return *this;}
133 
138  inline InsightResults& WithGroupByAttribute(const char* value) { SetGroupByAttribute(value); return *this;}
139 
140 
145  inline const Aws::Vector<InsightResultValue>& GetResultValues() const{ return m_resultValues; }
146 
151  inline bool ResultValuesHasBeenSet() const { return m_resultValuesHasBeenSet; }
152 
157  inline void SetResultValues(const Aws::Vector<InsightResultValue>& value) { m_resultValuesHasBeenSet = true; m_resultValues = value; }
158 
163  inline void SetResultValues(Aws::Vector<InsightResultValue>&& value) { m_resultValuesHasBeenSet = true; m_resultValues = std::move(value); }
164 
169  inline InsightResults& WithResultValues(const Aws::Vector<InsightResultValue>& value) { SetResultValues(value); return *this;}
170 
175  inline InsightResults& WithResultValues(Aws::Vector<InsightResultValue>&& value) { SetResultValues(std::move(value)); return *this;}
176 
181  inline InsightResults& AddResultValues(const InsightResultValue& value) { m_resultValuesHasBeenSet = true; m_resultValues.push_back(value); return *this; }
182 
187  inline InsightResults& AddResultValues(InsightResultValue&& value) { m_resultValuesHasBeenSet = true; m_resultValues.push_back(std::move(value)); return *this; }
188 
189  private:
190 
191  Aws::String m_insightArn;
192  bool m_insightArnHasBeenSet;
193 
194  Aws::String m_groupByAttribute;
195  bool m_groupByAttributeHasBeenSet;
196 
197  Aws::Vector<InsightResultValue> m_resultValues;
198  bool m_resultValuesHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace SecurityHub
203 } // namespace Aws
Aws::SecurityHub::Model::InsightResults::SetInsightArn
void SetInsightArn(const char *value)
Definition: InsightResults.h:71
Aws::SecurityHub::Model::InsightResults::SetInsightArn
void SetInsightArn(const Aws::String &value)
Definition: InsightResults.h:59
Aws::SecurityHub::Model::InsightResultValue
Definition: InsightResultValue.h:33
Aws::SecurityHub::Model::InsightResults::AddResultValues
InsightResults & AddResultValues(InsightResultValue &&value)
Definition: InsightResults.h:187
Aws::SecurityHub::Model::InsightResults::SetGroupByAttribute
void SetGroupByAttribute(Aws::String &&value)
Definition: InsightResults.h:114
Aws::SecurityHub::Model::InsightResults::SetGroupByAttribute
void SetGroupByAttribute(const char *value)
Definition: InsightResults.h:120
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecurityHub::Model::InsightResults::InsightArnHasBeenSet
bool InsightArnHasBeenSet() const
Definition: InsightResults.h:53
AWSVector.h
Aws::SecurityHub::Model::InsightResults::GetInsightArn
const Aws::String & GetInsightArn() const
Definition: InsightResults.h:47
Aws::SecurityHub::Model::InsightResults::WithGroupByAttribute
InsightResults & WithGroupByAttribute(const Aws::String &value)
Definition: InsightResults.h:126
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::InsightResults::InsightResults
InsightResults(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::InsightResults::WithGroupByAttribute
InsightResults & WithGroupByAttribute(Aws::String &&value)
Definition: InsightResults.h:132
Aws::SecurityHub::Model::InsightResults::GetGroupByAttribute
const Aws::String & GetGroupByAttribute() const
Definition: InsightResults.h:96
Aws::SecurityHub::Model::InsightResults::AddResultValues
InsightResults & AddResultValues(const InsightResultValue &value)
Definition: InsightResults.h:181
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SecurityHub::Model::InsightResults::InsightResults
InsightResults()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::InsightResults::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::InsightResults::WithResultValues
InsightResults & WithResultValues(Aws::Vector< InsightResultValue > &&value)
Definition: InsightResults.h:175
Aws::SecurityHub::Model::InsightResults::WithInsightArn
InsightResults & WithInsightArn(const char *value)
Definition: InsightResults.h:89
Aws::SecurityHub::Model::InsightResults::GroupByAttributeHasBeenSet
bool GroupByAttributeHasBeenSet() const
Definition: InsightResults.h:102
Aws::SecurityHub::Model::InsightResults::SetResultValues
void SetResultValues(const Aws::Vector< InsightResultValue > &value)
Definition: InsightResults.h:157
Aws::SecurityHub::Model::InsightResults::SetInsightArn
void SetInsightArn(Aws::String &&value)
Definition: InsightResults.h:65
Aws::SecurityHub::Model::InsightResults::WithInsightArn
InsightResults & WithInsightArn(const Aws::String &value)
Definition: InsightResults.h:77
Aws::SecurityHub::Model::InsightResults::WithInsightArn
InsightResults & WithInsightArn(Aws::String &&value)
Definition: InsightResults.h:83
Aws::SecurityHub::Model::InsightResults
Definition: InsightResults.h:35
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InsightResultValue.h
Aws::SecurityHub::Model::InsightResults::ResultValuesHasBeenSet
bool ResultValuesHasBeenSet() const
Definition: InsightResults.h:151
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::InsightResults::WithResultValues
InsightResults & WithResultValues(const Aws::Vector< InsightResultValue > &value)
Definition: InsightResults.h:169
Aws::SecurityHub::Model::InsightResults::SetGroupByAttribute
void SetGroupByAttribute(const Aws::String &value)
Definition: InsightResults.h:108
Aws::SecurityHub::Model::InsightResults::operator=
InsightResults & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::InsightResults::WithGroupByAttribute
InsightResults & WithGroupByAttribute(const char *value)
Definition: InsightResults.h:138
Aws::SecurityHub::Model::InsightResults::SetResultValues
void SetResultValues(Aws::Vector< InsightResultValue > &&value)
Definition: InsightResults.h:163
Aws::SecurityHub::Model::InsightResults::GetResultValues
const Aws::Vector< InsightResultValue > & GetResultValues() const
Definition: InsightResults.h:145