AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/pricing/Pricing_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 Pricing
23{
24namespace Model
25{
26
33 class Service
34 {
35 public:
36 AWS_PRICING_API Service() = default;
37 AWS_PRICING_API Service(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PRICING_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
47 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
48 template<typename ServiceCodeT = Aws::String>
49 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::forward<ServiceCodeT>(value); }
50 template<typename ServiceCodeT = Aws::String>
51 Service& WithServiceCode(ServiceCodeT&& value) { SetServiceCode(std::forward<ServiceCodeT>(value)); return *this;}
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) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::forward<AttributeNamesT>(value); }
62 template<typename AttributeNamesT = Aws::Vector<Aws::String>>
63 Service& WithAttributeNames(AttributeNamesT&& value) { SetAttributeNames(std::forward<AttributeNamesT>(value)); return *this;}
64 template<typename AttributeNamesT = Aws::String>
65 Service& AddAttributeNames(AttributeNamesT&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.emplace_back(std::forward<AttributeNamesT>(value)); return *this; }
67 private:
68
69 Aws::String m_serviceCode;
70 bool m_serviceCodeHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_attributeNames;
73 bool m_attributeNamesHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Pricing
78} // namespace Aws
Service & AddAttributeNames(AttributeNamesT &&value)
Definition Service.h:65
AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const
bool ServiceCodeHasBeenSet() const
Definition Service.h:47
bool AttributeNamesHasBeenSet() const
Definition Service.h:59
void SetServiceCode(ServiceCodeT &&value)
Definition Service.h:49
Service & WithServiceCode(ServiceCodeT &&value)
Definition Service.h:51
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:46
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:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue