AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
OTAJobConfig.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Panorama
22{
23namespace Model
24{
25
32 {
33 public:
38
39
43 inline bool GetAllowMajorVersionUpdate() const{ return m_allowMajorVersionUpdate; }
44
48 inline bool AllowMajorVersionUpdateHasBeenSet() const { return m_allowMajorVersionUpdateHasBeenSet; }
49
53 inline void SetAllowMajorVersionUpdate(bool value) { m_allowMajorVersionUpdateHasBeenSet = true; m_allowMajorVersionUpdate = value; }
54
58 inline OTAJobConfig& WithAllowMajorVersionUpdate(bool value) { SetAllowMajorVersionUpdate(value); return *this;}
59
60
64 inline const Aws::String& GetImageVersion() const{ return m_imageVersion; }
65
69 inline bool ImageVersionHasBeenSet() const { return m_imageVersionHasBeenSet; }
70
74 inline void SetImageVersion(const Aws::String& value) { m_imageVersionHasBeenSet = true; m_imageVersion = value; }
75
79 inline void SetImageVersion(Aws::String&& value) { m_imageVersionHasBeenSet = true; m_imageVersion = std::move(value); }
80
84 inline void SetImageVersion(const char* value) { m_imageVersionHasBeenSet = true; m_imageVersion.assign(value); }
85
89 inline OTAJobConfig& WithImageVersion(const Aws::String& value) { SetImageVersion(value); return *this;}
90
94 inline OTAJobConfig& WithImageVersion(Aws::String&& value) { SetImageVersion(std::move(value)); return *this;}
95
99 inline OTAJobConfig& WithImageVersion(const char* value) { SetImageVersion(value); return *this;}
100
101 private:
102
103 bool m_allowMajorVersionUpdate;
104 bool m_allowMajorVersionUpdateHasBeenSet = false;
105
106 Aws::String m_imageVersion;
107 bool m_imageVersionHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Panorama
112} // namespace Aws
#define AWS_PANORAMA_API
OTAJobConfig & WithImageVersion(const char *value)
Definition: OTAJobConfig.h:99
void SetImageVersion(const Aws::String &value)
Definition: OTAJobConfig.h:74
OTAJobConfig & WithAllowMajorVersionUpdate(bool value)
Definition: OTAJobConfig.h:58
OTAJobConfig & WithImageVersion(Aws::String &&value)
Definition: OTAJobConfig.h:94
void SetImageVersion(const char *value)
Definition: OTAJobConfig.h:84
bool AllowMajorVersionUpdateHasBeenSet() const
Definition: OTAJobConfig.h:48
const Aws::String & GetImageVersion() const
Definition: OTAJobConfig.h:64
AWS_PANORAMA_API OTAJobConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
OTAJobConfig & WithImageVersion(const Aws::String &value)
Definition: OTAJobConfig.h:89
AWS_PANORAMA_API OTAJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImageVersion(Aws::String &&value)
Definition: OTAJobConfig.h:79
void SetAllowMajorVersionUpdate(bool value)
Definition: OTAJobConfig.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String