AWS SDK for C++  1.9.20
AWS SDK for C++
Country.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:
39 
40 
44  inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
45 
49  inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
50 
54  inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
55 
59  inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::move(value); }
60 
64  inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
65 
69  inline Country& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
70 
74  inline Country& WithCountryCode(Aws::String&& value) { SetCountryCode(std::move(value)); return *this;}
75 
79  inline Country& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
80 
81 
85  inline const Aws::String& GetCountryName() const{ return m_countryName; }
86 
90  inline bool CountryNameHasBeenSet() const { return m_countryNameHasBeenSet; }
91 
95  inline void SetCountryName(const Aws::String& value) { m_countryNameHasBeenSet = true; m_countryName = value; }
96 
100  inline void SetCountryName(Aws::String&& value) { m_countryNameHasBeenSet = true; m_countryName = std::move(value); }
101 
105  inline void SetCountryName(const char* value) { m_countryNameHasBeenSet = true; m_countryName.assign(value); }
106 
110  inline Country& WithCountryName(const Aws::String& value) { SetCountryName(value); return *this;}
111 
115  inline Country& WithCountryName(Aws::String&& value) { SetCountryName(std::move(value)); return *this;}
116 
120  inline Country& WithCountryName(const char* value) { SetCountryName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_countryCode;
125  bool m_countryCodeHasBeenSet;
126 
127  Aws::String m_countryName;
128  bool m_countryNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GuardDuty
133 } // namespace Aws
Aws::GuardDuty::Model::Country::Country
Country(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Country::WithCountryName
Country & WithCountryName(const char *value)
Definition: Country.h:120
Aws::GuardDuty::Model::Country::SetCountryCode
void SetCountryCode(Aws::String &&value)
Definition: Country.h:59
Aws::GuardDuty::Model::Country::CountryNameHasBeenSet
bool CountryNameHasBeenSet() const
Definition: Country.h:90
Aws::GuardDuty::Model::Country::SetCountryCode
void SetCountryCode(const Aws::String &value)
Definition: Country.h:54
Aws::GuardDuty::Model::Country::SetCountryName
void SetCountryName(const char *value)
Definition: Country.h:105
Aws::GuardDuty::Model::Country::SetCountryName
void SetCountryName(Aws::String &&value)
Definition: Country.h:100
Aws::GuardDuty::Model::Country::WithCountryName
Country & WithCountryName(const Aws::String &value)
Definition: Country.h:110
Aws::GuardDuty::Model::Country::Country
Country()
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::Country::CountryCodeHasBeenSet
bool CountryCodeHasBeenSet() const
Definition: Country.h:49
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::Country::GetCountryName
const Aws::String & GetCountryName() const
Definition: Country.h:85
Aws::GuardDuty::Model::Country::SetCountryName
void SetCountryName(const Aws::String &value)
Definition: Country.h:95
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::Country::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::Country::WithCountryCode
Country & WithCountryCode(Aws::String &&value)
Definition: Country.h:74
Aws::GuardDuty::Model::Country::SetCountryCode
void SetCountryCode(const char *value)
Definition: Country.h:64
Aws::GuardDuty::Model::Country::operator=
Country & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Country
Definition: Country.h:33
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::Country::WithCountryCode
Country & WithCountryCode(const char *value)
Definition: Country.h:79
Aws::GuardDuty::Model::Country::GetCountryCode
const Aws::String & GetCountryCode() const
Definition: Country.h:44
Aws::GuardDuty::Model::Country::WithCountryCode
Country & WithCountryCode(const Aws::String &value)
Definition: Country.h:69
Aws::GuardDuty::Model::Country::WithCountryName
Country & WithCountryName(Aws::String &&value)
Definition: Country.h:115