AWS SDK for C++  1.8.127
AWS SDK for C++
City.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  City();
39 
40 
44  inline const Aws::String& GetCityName() const{ return m_cityName; }
45 
49  inline bool CityNameHasBeenSet() const { return m_cityNameHasBeenSet; }
50 
54  inline void SetCityName(const Aws::String& value) { m_cityNameHasBeenSet = true; m_cityName = value; }
55 
59  inline void SetCityName(Aws::String&& value) { m_cityNameHasBeenSet = true; m_cityName = std::move(value); }
60 
64  inline void SetCityName(const char* value) { m_cityNameHasBeenSet = true; m_cityName.assign(value); }
65 
69  inline City& WithCityName(const Aws::String& value) { SetCityName(value); return *this;}
70 
74  inline City& WithCityName(Aws::String&& value) { SetCityName(std::move(value)); return *this;}
75 
79  inline City& WithCityName(const char* value) { SetCityName(value); return *this;}
80 
81  private:
82 
83  Aws::String m_cityName;
84  bool m_cityNameHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace GuardDuty
89 } // namespace Aws
Aws::GuardDuty::Model::City::SetCityName
void SetCityName(Aws::String &&value)
Definition: City.h:59
Aws::GuardDuty::Model::City::WithCityName
City & WithCityName(const char *value)
Definition: City.h:79
Aws::GuardDuty::Model::City::SetCityName
void SetCityName(const char *value)
Definition: City.h:64
Aws::GuardDuty::Model::City::WithCityName
City & WithCityName(Aws::String &&value)
Definition: City.h:74
Aws::GuardDuty::Model::City::GetCityName
const Aws::String & GetCityName() const
Definition: City.h:44
Aws::GuardDuty::Model::City::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::City::City
City()
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::City::City
City(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::City::CityNameHasBeenSet
bool CityNameHasBeenSet() const
Definition: City.h:49
Aws::GuardDuty::Model::City::operator=
City & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::City::SetCityName
void SetCityName(const Aws::String &value)
Definition: City.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::City
Definition: City.h:33
Aws::GuardDuty::Model::City::WithCityName
City & WithCityName(const Aws::String &value)
Definition: City.h:69