AWS SDK for C++  1.8.126
AWS SDK for C++
ThreatIntelligenceDetail.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetThreatListName() const{ return m_threatListName; }
46 
50  inline bool ThreatListNameHasBeenSet() const { return m_threatListNameHasBeenSet; }
51 
55  inline void SetThreatListName(const Aws::String& value) { m_threatListNameHasBeenSet = true; m_threatListName = value; }
56 
60  inline void SetThreatListName(Aws::String&& value) { m_threatListNameHasBeenSet = true; m_threatListName = std::move(value); }
61 
65  inline void SetThreatListName(const char* value) { m_threatListNameHasBeenSet = true; m_threatListName.assign(value); }
66 
70  inline ThreatIntelligenceDetail& WithThreatListName(const Aws::String& value) { SetThreatListName(value); return *this;}
71 
75  inline ThreatIntelligenceDetail& WithThreatListName(Aws::String&& value) { SetThreatListName(std::move(value)); return *this;}
76 
80  inline ThreatIntelligenceDetail& WithThreatListName(const char* value) { SetThreatListName(value); return *this;}
81 
82 
87  inline const Aws::Vector<Aws::String>& GetThreatNames() const{ return m_threatNames; }
88 
93  inline bool ThreatNamesHasBeenSet() const { return m_threatNamesHasBeenSet; }
94 
99  inline void SetThreatNames(const Aws::Vector<Aws::String>& value) { m_threatNamesHasBeenSet = true; m_threatNames = value; }
100 
105  inline void SetThreatNames(Aws::Vector<Aws::String>&& value) { m_threatNamesHasBeenSet = true; m_threatNames = std::move(value); }
106 
111  inline ThreatIntelligenceDetail& WithThreatNames(const Aws::Vector<Aws::String>& value) { SetThreatNames(value); return *this;}
112 
117  inline ThreatIntelligenceDetail& WithThreatNames(Aws::Vector<Aws::String>&& value) { SetThreatNames(std::move(value)); return *this;}
118 
123  inline ThreatIntelligenceDetail& AddThreatNames(const Aws::String& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(value); return *this; }
124 
129  inline ThreatIntelligenceDetail& AddThreatNames(Aws::String&& value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(std::move(value)); return *this; }
130 
135  inline ThreatIntelligenceDetail& AddThreatNames(const char* value) { m_threatNamesHasBeenSet = true; m_threatNames.push_back(value); return *this; }
136 
137  private:
138 
139  Aws::String m_threatListName;
140  bool m_threatListNameHasBeenSet;
141 
142  Aws::Vector<Aws::String> m_threatNames;
143  bool m_threatNamesHasBeenSet;
144  };
145 
146 } // namespace Model
147 } // namespace GuardDuty
148 } // namespace Aws
Aws::GuardDuty::Model::ThreatIntelligenceDetail::AddThreatNames
ThreatIntelligenceDetail & AddThreatNames(Aws::String &&value)
Definition: ThreatIntelligenceDetail.h:129
Aws::GuardDuty::Model::ThreatIntelligenceDetail::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::ThreatIntelligenceDetail::ThreatIntelligenceDetail
ThreatIntelligenceDetail()
Aws::GuardDuty::Model::ThreatIntelligenceDetail::WithThreatNames
ThreatIntelligenceDetail & WithThreatNames(Aws::Vector< Aws::String > &&value)
Definition: ThreatIntelligenceDetail.h:117
Aws::GuardDuty::Model::ThreatIntelligenceDetail::operator=
ThreatIntelligenceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::ThreatIntelligenceDetail::GetThreatNames
const Aws::Vector< Aws::String > & GetThreatNames() const
Definition: ThreatIntelligenceDetail.h:87
Aws::GuardDuty::Model::ThreatIntelligenceDetail::SetThreatListName
void SetThreatListName(const char *value)
Definition: ThreatIntelligenceDetail.h:65
Aws::GuardDuty::Model::ThreatIntelligenceDetail::ThreatIntelligenceDetail
ThreatIntelligenceDetail(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::ThreatIntelligenceDetail::WithThreatListName
ThreatIntelligenceDetail & WithThreatListName(const char *value)
Definition: ThreatIntelligenceDetail.h:80
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GuardDuty::Model::ThreatIntelligenceDetail
Definition: ThreatIntelligenceDetail.h:34
Aws::GuardDuty::Model::ThreatIntelligenceDetail::SetThreatListName
void SetThreatListName(Aws::String &&value)
Definition: ThreatIntelligenceDetail.h:60
Aws::GuardDuty::Model::ThreatIntelligenceDetail::SetThreatListName
void SetThreatListName(const Aws::String &value)
Definition: ThreatIntelligenceDetail.h:55
Aws::GuardDuty::Model::ThreatIntelligenceDetail::ThreatNamesHasBeenSet
bool ThreatNamesHasBeenSet() const
Definition: ThreatIntelligenceDetail.h:93
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ThreatIntelligenceDetail::WithThreatNames
ThreatIntelligenceDetail & WithThreatNames(const Aws::Vector< Aws::String > &value)
Definition: ThreatIntelligenceDetail.h:111
Aws::GuardDuty::Model::ThreatIntelligenceDetail::GetThreatListName
const Aws::String & GetThreatListName() const
Definition: ThreatIntelligenceDetail.h:45
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::ThreatIntelligenceDetail::SetThreatNames
void SetThreatNames(const Aws::Vector< Aws::String > &value)
Definition: ThreatIntelligenceDetail.h:99
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::ThreatIntelligenceDetail::AddThreatNames
ThreatIntelligenceDetail & AddThreatNames(const char *value)
Definition: ThreatIntelligenceDetail.h:135
Aws::GuardDuty::Model::ThreatIntelligenceDetail::SetThreatNames
void SetThreatNames(Aws::Vector< Aws::String > &&value)
Definition: ThreatIntelligenceDetail.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ThreatIntelligenceDetail::WithThreatListName
ThreatIntelligenceDetail & WithThreatListName(Aws::String &&value)
Definition: ThreatIntelligenceDetail.h:75
Aws::GuardDuty::Model::ThreatIntelligenceDetail::AddThreatNames
ThreatIntelligenceDetail & AddThreatNames(const Aws::String &value)
Definition: ThreatIntelligenceDetail.h:123
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ThreatIntelligenceDetail::WithThreatListName
ThreatIntelligenceDetail & WithThreatListName(const Aws::String &value)
Definition: ThreatIntelligenceDetail.h:70
Aws::GuardDuty::Model::ThreatIntelligenceDetail::ThreatListNameHasBeenSet
bool ThreatListNameHasBeenSet() const
Definition: ThreatIntelligenceDetail.h:50