AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
WaypointOptimizationExclusionOptions.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
36 {
37 public:
38 AWS_GEOROUTES_API WaypointOptimizationExclusionOptions() = default;
41 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetCountries() const { return m_countries; }
50 inline bool CountriesHasBeenSet() const { return m_countriesHasBeenSet; }
51 template<typename CountriesT = Aws::Vector<Aws::String>>
52 void SetCountries(CountriesT&& value) { m_countriesHasBeenSet = true; m_countries = std::forward<CountriesT>(value); }
53 template<typename CountriesT = Aws::Vector<Aws::String>>
54 WaypointOptimizationExclusionOptions& WithCountries(CountriesT&& value) { SetCountries(std::forward<CountriesT>(value)); return *this;}
55 template<typename CountriesT = Aws::String>
56 WaypointOptimizationExclusionOptions& AddCountries(CountriesT&& value) { m_countriesHasBeenSet = true; m_countries.emplace_back(std::forward<CountriesT>(value)); return *this; }
58 private:
59
60 Aws::Vector<Aws::String> m_countries;
61 bool m_countriesHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace GeoRoutes
66} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GEOROUTES_API WaypointOptimizationExclusionOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationExclusionOptions & WithCountries(CountriesT &&value)
AWS_GEOROUTES_API WaypointOptimizationExclusionOptions(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationExclusionOptions & AddCountries(CountriesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue