AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pricing/Pricing_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pricing {
21namespace Model {
22
29class Service {
30 public:
31 AWS_PRICING_API Service() = default;
32 AWS_PRICING_API Service(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PRICING_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
41 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
42 template <typename ServiceCodeT = Aws::String>
43 void SetServiceCode(ServiceCodeT&& value) {
44 m_serviceCodeHasBeenSet = true;
45 m_serviceCode = std::forward<ServiceCodeT>(value);
46 }
47 template <typename ServiceCodeT = Aws::String>
48 Service& WithServiceCode(ServiceCodeT&& value) {
49 SetServiceCode(std::forward<ServiceCodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetAttributeNames() const { return m_attributeNames; }
59 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
60 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
61 void SetAttributeNames(AttributeNamesT&& value) {
62 m_attributeNamesHasBeenSet = true;
63 m_attributeNames = std::forward<AttributeNamesT>(value);
64 }
65 template <typename AttributeNamesT = Aws::Vector<Aws::String>>
66 Service& WithAttributeNames(AttributeNamesT&& value) {
67 SetAttributeNames(std::forward<AttributeNamesT>(value));
68 return *this;
69 }
70 template <typename AttributeNamesT = Aws::String>
71 Service& AddAttributeNames(AttributeNamesT&& value) {
72 m_attributeNamesHasBeenSet = true;
73 m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_serviceCode;
79
80 Aws::Vector<Aws::String> m_attributeNames;
81 bool m_serviceCodeHasBeenSet = false;
82 bool m_attributeNamesHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Pricing
87} // namespace Aws
Service & AddAttributeNames(AttributeNamesT &&value)
Definition Service.h:71
AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const
bool ServiceCodeHasBeenSet() const
Definition Service.h:41
bool AttributeNamesHasBeenSet() const
Definition Service.h:59
void SetServiceCode(ServiceCodeT &&value)
Definition Service.h:43
Service & WithServiceCode(ServiceCodeT &&value)
Definition Service.h:48
AWS_PRICING_API Service()=default
AWS_PRICING_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttributeNames(AttributeNamesT &&value)
Definition Service.h:61
const Aws::String & GetServiceCode() const
Definition Service.h:40
const Aws::Vector< Aws::String > & GetAttributeNames() const
Definition Service.h:58
AWS_PRICING_API Service(Aws::Utils::Json::JsonView jsonValue)
Service & WithAttributeNames(AttributeNamesT &&value)
Definition Service.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue