AWS SDK for C++  1.9.104
AWS SDK for C++
ReportedOs.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 OpsWorks
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetFamily() const{ return m_family; }
45 
49  inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
50 
54  inline void SetFamily(const Aws::String& value) { m_familyHasBeenSet = true; m_family = value; }
55 
59  inline void SetFamily(Aws::String&& value) { m_familyHasBeenSet = true; m_family = std::move(value); }
60 
64  inline void SetFamily(const char* value) { m_familyHasBeenSet = true; m_family.assign(value); }
65 
69  inline ReportedOs& WithFamily(const Aws::String& value) { SetFamily(value); return *this;}
70 
74  inline ReportedOs& WithFamily(Aws::String&& value) { SetFamily(std::move(value)); return *this;}
75 
79  inline ReportedOs& WithFamily(const char* value) { SetFamily(value); return *this;}
80 
81 
85  inline const Aws::String& GetName() const{ return m_name; }
86 
90  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 
95  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
96 
100  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
101 
105  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
106 
110  inline ReportedOs& WithName(const Aws::String& value) { SetName(value); return *this;}
111 
115  inline ReportedOs& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 
120  inline ReportedOs& WithName(const char* value) { SetName(value); return *this;}
121 
122 
126  inline const Aws::String& GetVersion() const{ return m_version; }
127 
131  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
132 
136  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
137 
141  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
142 
146  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
147 
151  inline ReportedOs& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
152 
156  inline ReportedOs& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
157 
161  inline ReportedOs& WithVersion(const char* value) { SetVersion(value); return *this;}
162 
163  private:
164 
165  Aws::String m_family;
166  bool m_familyHasBeenSet;
167 
168  Aws::String m_name;
169  bool m_nameHasBeenSet;
170 
171  Aws::String m_version;
172  bool m_versionHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace OpsWorks
177 } // namespace Aws
Aws::OpsWorks::Model::ReportedOs::SetFamily
void SetFamily(const Aws::String &value)
Definition: ReportedOs.h:54
Aws::OpsWorks::Model::ReportedOs::ReportedOs
ReportedOs()
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::ReportedOs::WithName
ReportedOs & WithName(const char *value)
Definition: ReportedOs.h:120
Aws::OpsWorks::Model::ReportedOs::SetName
void SetName(Aws::String &&value)
Definition: ReportedOs.h:100
Aws::OpsWorks::Model::ReportedOs::SetVersion
void SetVersion(Aws::String &&value)
Definition: ReportedOs.h:141
Aws::OpsWorks::Model::ReportedOs::WithFamily
ReportedOs & WithFamily(Aws::String &&value)
Definition: ReportedOs.h:74
Aws::OpsWorks::Model::ReportedOs::ReportedOs
ReportedOs(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::ReportedOs::WithVersion
ReportedOs & WithVersion(const char *value)
Definition: ReportedOs.h:161
Aws::OpsWorks::Model::ReportedOs::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ReportedOs.h:90
Aws::OpsWorks::Model::ReportedOs::SetName
void SetName(const Aws::String &value)
Definition: ReportedOs.h:95
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::ReportedOs::SetName
void SetName(const char *value)
Definition: ReportedOs.h:105
Aws::OpsWorks::Model::ReportedOs::GetFamily
const Aws::String & GetFamily() const
Definition: ReportedOs.h:44
Aws::OpsWorks::Model::ReportedOs::WithFamily
ReportedOs & WithFamily(const char *value)
Definition: ReportedOs.h:79
Aws::OpsWorks::Model::ReportedOs::SetVersion
void SetVersion(const char *value)
Definition: ReportedOs.h:146
Aws::OpsWorks::Model::ReportedOs::WithName
ReportedOs & WithName(Aws::String &&value)
Definition: ReportedOs.h:115
Aws::OpsWorks::Model::ReportedOs
Definition: ReportedOs.h:33
Aws::OpsWorks::Model::ReportedOs::SetFamily
void SetFamily(Aws::String &&value)
Definition: ReportedOs.h:59
Aws::OpsWorks::Model::ReportedOs::WithVersion
ReportedOs & WithVersion(Aws::String &&value)
Definition: ReportedOs.h:156
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::OpsWorks::Model::ReportedOs::FamilyHasBeenSet
bool FamilyHasBeenSet() const
Definition: ReportedOs.h:49
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::ReportedOs::GetVersion
const Aws::String & GetVersion() const
Definition: ReportedOs.h:126
Aws::OpsWorks::Model::ReportedOs::SetVersion
void SetVersion(const Aws::String &value)
Definition: ReportedOs.h:136
Aws::OpsWorks::Model::ReportedOs::GetName
const Aws::String & GetName() const
Definition: ReportedOs.h:85
Aws::OpsWorks::Model::ReportedOs::WithName
ReportedOs & WithName(const Aws::String &value)
Definition: ReportedOs.h:110
Aws::OpsWorks::Model::ReportedOs::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: ReportedOs.h:131
Aws::OpsWorks::Model::ReportedOs::SetFamily
void SetFamily(const char *value)
Definition: ReportedOs.h:64
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::ReportedOs::WithFamily
ReportedOs & WithFamily(const Aws::String &value)
Definition: ReportedOs.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::ReportedOs::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::OpsWorks::Model::ReportedOs::operator=
ReportedOs & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::ReportedOs::WithVersion
ReportedOs & WithVersion(const Aws::String &value)
Definition: ReportedOs.h:151