AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DependentService.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/model/ServiceName.h>
9#include <aws/snowball/model/ServiceVersion.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 Snowball
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SNOWBALL_API DependentService() = default;
37 AWS_SNOWBALL_API DependentService(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ServiceName GetServiceName() const { return m_serviceName; }
47 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
48 inline void SetServiceName(ServiceName value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
49 inline DependentService& WithServiceName(ServiceName value) { SetServiceName(value); return *this;}
51
53
56 inline const ServiceVersion& GetServiceVersion() const { return m_serviceVersion; }
57 inline bool ServiceVersionHasBeenSet() const { return m_serviceVersionHasBeenSet; }
58 template<typename ServiceVersionT = ServiceVersion>
59 void SetServiceVersion(ServiceVersionT&& value) { m_serviceVersionHasBeenSet = true; m_serviceVersion = std::forward<ServiceVersionT>(value); }
60 template<typename ServiceVersionT = ServiceVersion>
61 DependentService& WithServiceVersion(ServiceVersionT&& value) { SetServiceVersion(std::forward<ServiceVersionT>(value)); return *this;}
63 private:
64
65 ServiceName m_serviceName{ServiceName::NOT_SET};
66 bool m_serviceNameHasBeenSet = false;
67
68 ServiceVersion m_serviceVersion;
69 bool m_serviceVersionHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Snowball
74} // namespace Aws
DependentService & WithServiceVersion(ServiceVersionT &&value)
const ServiceVersion & GetServiceVersion() const
AWS_SNOWBALL_API DependentService(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
DependentService & WithServiceName(ServiceName value)
void SetServiceVersion(ServiceVersionT &&value)
AWS_SNOWBALL_API DependentService()=default
AWS_SNOWBALL_API DependentService & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue