AWS SDK for C++  1.9.104
AWS SDK for C++
FilterConfiguration.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 GameLift
23 {
24 namespace Model
25 {
26 
38  {
39  public:
44 
45 
50  inline const Aws::Vector<Aws::String>& GetAllowedLocations() const{ return m_allowedLocations; }
51 
56  inline bool AllowedLocationsHasBeenSet() const { return m_allowedLocationsHasBeenSet; }
57 
62  inline void SetAllowedLocations(const Aws::Vector<Aws::String>& value) { m_allowedLocationsHasBeenSet = true; m_allowedLocations = value; }
63 
68  inline void SetAllowedLocations(Aws::Vector<Aws::String>&& value) { m_allowedLocationsHasBeenSet = true; m_allowedLocations = std::move(value); }
69 
74  inline FilterConfiguration& WithAllowedLocations(const Aws::Vector<Aws::String>& value) { SetAllowedLocations(value); return *this;}
75 
80  inline FilterConfiguration& WithAllowedLocations(Aws::Vector<Aws::String>&& value) { SetAllowedLocations(std::move(value)); return *this;}
81 
86  inline FilterConfiguration& AddAllowedLocations(const Aws::String& value) { m_allowedLocationsHasBeenSet = true; m_allowedLocations.push_back(value); return *this; }
87 
92  inline FilterConfiguration& AddAllowedLocations(Aws::String&& value) { m_allowedLocationsHasBeenSet = true; m_allowedLocations.push_back(std::move(value)); return *this; }
93 
98  inline FilterConfiguration& AddAllowedLocations(const char* value) { m_allowedLocationsHasBeenSet = true; m_allowedLocations.push_back(value); return *this; }
99 
100  private:
101 
102  Aws::Vector<Aws::String> m_allowedLocations;
103  bool m_allowedLocationsHasBeenSet;
104  };
105 
106 } // namespace Model
107 } // namespace GameLift
108 } // namespace Aws
Aws::GameLift::Model::FilterConfiguration::AllowedLocationsHasBeenSet
bool AllowedLocationsHasBeenSet() const
Definition: FilterConfiguration.h:56
Aws::GameLift::Model::FilterConfiguration::FilterConfiguration
FilterConfiguration()
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::FilterConfiguration::SetAllowedLocations
void SetAllowedLocations(const Aws::Vector< Aws::String > &value)
Definition: FilterConfiguration.h:62
AWSVector.h
Aws::GameLift::Model::FilterConfiguration
Definition: FilterConfiguration.h:38
Aws::GameLift::Model::FilterConfiguration::GetAllowedLocations
const Aws::Vector< Aws::String > & GetAllowedLocations() const
Definition: FilterConfiguration.h:50
GameLift_EXPORTS.h
Aws::GameLift::Model::FilterConfiguration::WithAllowedLocations
FilterConfiguration & WithAllowedLocations(Aws::Vector< Aws::String > &&value)
Definition: FilterConfiguration.h:80
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::FilterConfiguration::WithAllowedLocations
FilterConfiguration & WithAllowedLocations(const Aws::Vector< Aws::String > &value)
Definition: FilterConfiguration.h:74
Aws::GameLift::Model::FilterConfiguration::operator=
FilterConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::FilterConfiguration::SetAllowedLocations
void SetAllowedLocations(Aws::Vector< Aws::String > &&value)
Definition: FilterConfiguration.h:68
Aws::GameLift::Model::FilterConfiguration::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::FilterConfiguration::AddAllowedLocations
FilterConfiguration & AddAllowedLocations(const char *value)
Definition: FilterConfiguration.h:98
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::FilterConfiguration::FilterConfiguration
FilterConfiguration(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::FilterConfiguration::AddAllowedLocations
FilterConfiguration & AddAllowedLocations(Aws::String &&value)
Definition: FilterConfiguration.h:92
Aws::GameLift::Model::FilterConfiguration::AddAllowedLocations
FilterConfiguration & AddAllowedLocations(const Aws::String &value)
Definition: FilterConfiguration.h:86