AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OSInfo.h
1
6#pragma once
7#include <aws/migrationhubstrategy/MigrationHubStrategyRecommendations_EXPORTS.h>
8#include <aws/migrationhubstrategy/model/OSType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MigrationHubStrategyRecommendations
23{
24namespace Model
25{
26
32 class OSInfo
33 {
34 public:
35 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API OSInfo();
36 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API OSInfo(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API OSInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const OSType& GetType() const{ return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(const OSType& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(OSType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline OSInfo& WithType(const OSType& value) { SetType(value); return *this;}
50 inline OSInfo& WithType(OSType&& value) { SetType(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetVersion() const{ return m_version; }
58 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
59 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
60 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
61 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
62 inline OSInfo& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
63 inline OSInfo& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
64 inline OSInfo& WithVersion(const char* value) { SetVersion(value); return *this;}
66 private:
67
68 OSType m_type;
69 bool m_typeHasBeenSet = false;
70
71 Aws::String m_version;
72 bool m_versionHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace MigrationHubStrategyRecommendations
77} // namespace Aws
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API OSInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
OSInfo & WithVersion(const Aws::String &value)
Definition OSInfo.h:62
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API OSInfo()
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API OSInfo(Aws::Utils::Json::JsonView jsonValue)
void SetVersion(const Aws::String &value)
Definition OSInfo.h:59
AWS_MIGRATIONHUBSTRATEGYRECOMMENDATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue