AWS SDK for C++  1.9.160
AWS SDK for C++
InstanceInformationFilter.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
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 SSM
24 {
25 namespace Model
26 {
27 
39  {
40  public:
45 
46 
50  inline const InstanceInformationFilterKey& GetKey() const{ return m_key; }
51 
55  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 
60  inline void SetKey(const InstanceInformationFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
61 
65  inline void SetKey(InstanceInformationFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
66 
70  inline InstanceInformationFilter& WithKey(const InstanceInformationFilterKey& value) { SetKey(value); return *this;}
71 
75  inline InstanceInformationFilter& WithKey(InstanceInformationFilterKey&& value) { SetKey(std::move(value)); return *this;}
76 
77 
81  inline const Aws::Vector<Aws::String>& GetValueSet() const{ return m_valueSet; }
82 
86  inline bool ValueSetHasBeenSet() const { return m_valueSetHasBeenSet; }
87 
91  inline void SetValueSet(const Aws::Vector<Aws::String>& value) { m_valueSetHasBeenSet = true; m_valueSet = value; }
92 
96  inline void SetValueSet(Aws::Vector<Aws::String>&& value) { m_valueSetHasBeenSet = true; m_valueSet = std::move(value); }
97 
101  inline InstanceInformationFilter& WithValueSet(const Aws::Vector<Aws::String>& value) { SetValueSet(value); return *this;}
102 
106  inline InstanceInformationFilter& WithValueSet(Aws::Vector<Aws::String>&& value) { SetValueSet(std::move(value)); return *this;}
107 
111  inline InstanceInformationFilter& AddValueSet(const Aws::String& value) { m_valueSetHasBeenSet = true; m_valueSet.push_back(value); return *this; }
112 
116  inline InstanceInformationFilter& AddValueSet(Aws::String&& value) { m_valueSetHasBeenSet = true; m_valueSet.push_back(std::move(value)); return *this; }
117 
121  inline InstanceInformationFilter& AddValueSet(const char* value) { m_valueSetHasBeenSet = true; m_valueSet.push_back(value); return *this; }
122 
123  private:
124 
126  bool m_keyHasBeenSet;
127 
128  Aws::Vector<Aws::String> m_valueSet;
129  bool m_valueSetHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace SSM
134 } // namespace Aws
Aws::SSM::Model::InstanceInformationFilter::WithValueSet
InstanceInformationFilter & WithValueSet(const Aws::Vector< Aws::String > &value)
Definition: InstanceInformationFilter.h:101
Aws::ResilienceHub::Model::SopServiceType::NOT_SET
@ NOT_SET
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::InstanceInformationFilter::ValueSetHasBeenSet
bool ValueSetHasBeenSet() const
Definition: InstanceInformationFilter.h:86
Aws::SSM::Model::InstanceInformationFilter::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: InstanceInformationFilter.h:55
Aws::SSM::Model::InstanceInformationFilter::AddValueSet
InstanceInformationFilter & AddValueSet(const Aws::String &value)
Definition: InstanceInformationFilter.h:111
Aws::SSM::Model::InstanceInformationFilter::InstanceInformationFilter
InstanceInformationFilter()
Aws::SSM::Model::InstanceInformationFilter::AddValueSet
InstanceInformationFilter & AddValueSet(Aws::String &&value)
Definition: InstanceInformationFilter.h:116
Aws::SSM::Model::InstanceInformationFilter::GetValueSet
const Aws::Vector< Aws::String > & GetValueSet() const
Definition: InstanceInformationFilter.h:81
Aws::SSM::Model::InstanceInformationFilter::WithKey
InstanceInformationFilter & WithKey(InstanceInformationFilterKey &&value)
Definition: InstanceInformationFilter.h:75
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
SSM_EXPORTS.h
Aws::SSM::Model::InstanceInformationFilter::WithValueSet
InstanceInformationFilter & WithValueSet(Aws::Vector< Aws::String > &&value)
Definition: InstanceInformationFilter.h:106
InstanceInformationFilterKey.h
Aws::SSM::Model::InstanceInformationFilter::InstanceInformationFilter
InstanceInformationFilter(Aws::Utils::Json::JsonView jsonValue)
Aws::SSM::Model::InstanceInformationFilter
Definition: InstanceInformationFilter.h:39
AWSVector.h
Aws::SSM::Model::InstanceInformationFilter::AddValueSet
InstanceInformationFilter & AddValueSet(const char *value)
Definition: InstanceInformationFilter.h:121
Aws::SSM::Model::InstanceInformationFilter::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSM::Model::InstanceInformationFilter::GetKey
const InstanceInformationFilterKey & GetKey() const
Definition: InstanceInformationFilter.h:50
Aws::SSM::Model::InstanceInformationFilterKey
InstanceInformationFilterKey
Definition: InstanceInformationFilterKey.h:17
Aws::SSM::Model::InstanceInformationFilter::SetValueSet
void SetValueSet(const Aws::Vector< Aws::String > &value)
Definition: InstanceInformationFilter.h:91
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SSM::Model::InstanceInformationFilter::SetKey
void SetKey(InstanceInformationFilterKey &&value)
Definition: InstanceInformationFilter.h:65
Aws::SSM::Model::InstanceInformationFilter::WithKey
InstanceInformationFilter & WithKey(const InstanceInformationFilterKey &value)
Definition: InstanceInformationFilter.h:70
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SSM::Model::InstanceInformationFilter::SetKey
void SetKey(const InstanceInformationFilterKey &value)
Definition: InstanceInformationFilter.h:60
Aws::SSM::Model::InstanceInformationFilter::SetValueSet
void SetValueSet(Aws::Vector< Aws::String > &&value)
Definition: InstanceInformationFilter.h:96
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::InstanceInformationFilter::operator=
InstanceInformationFilter & operator=(Aws::Utils::Json::JsonView jsonValue)