AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
City.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
27class City {
28 public:
29 AWS_SECURITYHUB_API City() = default;
30 AWS_SECURITYHUB_API City(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYHUB_API City& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetCityName() const { return m_cityName; }
39 inline bool CityNameHasBeenSet() const { return m_cityNameHasBeenSet; }
40 template <typename CityNameT = Aws::String>
41 void SetCityName(CityNameT&& value) {
42 m_cityNameHasBeenSet = true;
43 m_cityName = std::forward<CityNameT>(value);
44 }
45 template <typename CityNameT = Aws::String>
46 City& WithCityName(CityNameT&& value) {
47 SetCityName(std::forward<CityNameT>(value));
48 return *this;
49 }
51 private:
52 Aws::String m_cityName;
53 bool m_cityNameHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace SecurityHub
58} // namespace Aws
bool CityNameHasBeenSet() const
Definition City.h:39
AWS_SECURITYHUB_API City & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
City & WithCityName(CityNameT &&value)
Definition City.h:46
AWS_SECURITYHUB_API City(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCityName() const
Definition City.h:38
AWS_SECURITYHUB_API City()=default
void SetCityName(CityNameT &&value)
Definition City.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue