AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Snowball {
21namespace Model {
22
30 public:
31 AWS_SNOWBALL_API DependentService() = default;
32 AWS_SNOWBALL_API DependentService(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ServiceName GetServiceName() const { return m_serviceName; }
41 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
42 inline void SetServiceName(ServiceName value) {
43 m_serviceNameHasBeenSet = true;
44 m_serviceName = value;
45 }
47 SetServiceName(value);
48 return *this;
49 }
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) {
60 m_serviceVersionHasBeenSet = true;
61 m_serviceVersion = std::forward<ServiceVersionT>(value);
62 }
63 template <typename ServiceVersionT = ServiceVersion>
64 DependentService& WithServiceVersion(ServiceVersionT&& value) {
65 SetServiceVersion(std::forward<ServiceVersionT>(value));
66 return *this;
67 }
69 private:
70 ServiceName m_serviceName{ServiceName::NOT_SET};
71
72 ServiceVersion m_serviceVersion;
73 bool m_serviceNameHasBeenSet = false;
74 bool m_serviceVersionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Snowball
79} // 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