AWS SDK for C++  1.9.104
AWS SDK for C++
IpCity.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 Macie2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  IpCity();
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline IpCity& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline IpCity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline IpCity& WithName(const char* value) { SetName(value); return *this;}
80 
81  private:
82 
83  Aws::String m_name;
84  bool m_nameHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace Macie2
89 } // namespace Aws
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::IpCity::SetName
void SetName(const char *value)
Definition: IpCity.h:64
Aws::Macie2::Model::IpCity::WithName
IpCity & WithName(Aws::String &&value)
Definition: IpCity.h:74
Aws::Macie2::Model::IpCity::NameHasBeenSet
bool NameHasBeenSet() const
Definition: IpCity.h:49
Macie2_EXPORTS.h
Aws::Macie2::Model::IpCity::SetName
void SetName(const Aws::String &value)
Definition: IpCity.h:54
Aws::Macie2::Model::IpCity::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Macie2::Model::IpCity
Definition: IpCity.h:33
Aws::Macie2::Model::IpCity::WithName
IpCity & WithName(const char *value)
Definition: IpCity.h:79
Aws::Macie2::Model::IpCity::GetName
const Aws::String & GetName() const
Definition: IpCity.h:44
Aws::Macie2::Model::IpCity::IpCity
IpCity(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::IpCity::IpCity
IpCity()
Aws::Macie2::Model::IpCity::SetName
void SetName(Aws::String &&value)
Definition: IpCity.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::IpCity::operator=
IpCity & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::IpCity::WithName
IpCity & WithName(const Aws::String &value)
Definition: IpCity.h:69