AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
DependentService.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/snowball/Snowball_EXPORTS.h>
9#include <aws/snowball/model/ServiceName.h>
10#include <aws/snowball/model/ServiceVersion.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Snowball {
21namespace Model {
22
30 public:
31 AWS_SNOWBALL_API DependentService() = default;
32 AWS_SNOWBALL_API DependentService(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_SNOWBALL_API DependentService& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
AWS_SNOWBALL_API DependentService(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DependentService & WithServiceVersion(ServiceVersionT &&value)
const ServiceVersion & GetServiceVersion() const
AWS_SNOWBALL_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
DependentService & WithServiceName(ServiceName value)
AWS_SNOWBALL_API DependentService & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetServiceVersion(ServiceVersionT &&value)
AWS_SNOWBALL_API DependentService()=default