AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RouteExclusionOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GEOROUTES_API RouteExclusionOptions();
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::Vector<Aws::String>& GetCountries() const{ return m_countries; }
47 inline bool CountriesHasBeenSet() const { return m_countriesHasBeenSet; }
48 inline void SetCountries(const Aws::Vector<Aws::String>& value) { m_countriesHasBeenSet = true; m_countries = value; }
49 inline void SetCountries(Aws::Vector<Aws::String>&& value) { m_countriesHasBeenSet = true; m_countries = std::move(value); }
50 inline RouteExclusionOptions& WithCountries(const Aws::Vector<Aws::String>& value) { SetCountries(value); return *this;}
51 inline RouteExclusionOptions& WithCountries(Aws::Vector<Aws::String>&& value) { SetCountries(std::move(value)); return *this;}
52 inline RouteExclusionOptions& AddCountries(const Aws::String& value) { m_countriesHasBeenSet = true; m_countries.push_back(value); return *this; }
53 inline RouteExclusionOptions& AddCountries(Aws::String&& value) { m_countriesHasBeenSet = true; m_countries.push_back(std::move(value)); return *this; }
54 inline RouteExclusionOptions& AddCountries(const char* value) { m_countriesHasBeenSet = true; m_countries.push_back(value); return *this; }
56 private:
57
58 Aws::Vector<Aws::String> m_countries;
59 bool m_countriesHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace GeoRoutes
64} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCountries() const
RouteExclusionOptions & AddCountries(const Aws::String &value)
RouteExclusionOptions & WithCountries(const Aws::Vector< Aws::String > &value)
RouteExclusionOptions & AddCountries(const char *value)
AWS_GEOROUTES_API RouteExclusionOptions(Aws::Utils::Json::JsonView jsonValue)
void SetCountries(const Aws::Vector< Aws::String > &value)
void SetCountries(Aws::Vector< Aws::String > &&value)
RouteExclusionOptions & WithCountries(Aws::Vector< Aws::String > &&value)
AWS_GEOROUTES_API RouteExclusionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteExclusionOptions & AddCountries(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue