AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
49 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
50 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
51 inline Service& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
52 inline Service& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
53 inline Service& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetAttributeNames() const{ return m_attributeNames; }
61 inline bool AttributeNamesHasBeenSet() const { return m_attributeNamesHasBeenSet; }
62 inline void SetAttributeNames(const Aws::Vector<Aws::String>& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = value; }
63 inline void SetAttributeNames(Aws::Vector<Aws::String>&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames = std::move(value); }
64 inline Service& WithAttributeNames(const Aws::Vector<Aws::String>& value) { SetAttributeNames(value); return *this;}
65 inline Service& WithAttributeNames(Aws::Vector<Aws::String>&& value) { SetAttributeNames(std::move(value)); return *this;}
66 inline Service& AddAttributeNames(const Aws::String& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
67 inline Service& AddAttributeNames(Aws::String&& value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(std::move(value)); return *this; }
68 inline Service& AddAttributeNames(const char* value) { m_attributeNamesHasBeenSet = true; m_attributeNames.push_back(value); return *this; }
70 private:
71
72 Aws::String m_serviceCode;
73 bool m_serviceCodeHasBeenSet = false;
74
75 Aws::Vector<Aws::String> m_attributeNames;
76 bool m_attributeNamesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Pricing
81} // namespace Aws
Service & WithServiceCode(Aws::String &&value)
Definition Service.h:52
Service & AddAttributeNames(Aws::String &&value)
Definition Service.h:67
Service & AddAttributeNames(const char *value)
Definition Service.h:68
AWS_PRICING_API Aws::Utils::Json::JsonValue Jsonize() const
Service & AddAttributeNames(const Aws::String &value)
Definition Service.h:66
Service & WithAttributeNames(const Aws::Vector< Aws::String > &value)
Definition Service.h:64
Service & WithAttributeNames(Aws::Vector< Aws::String > &&value)
Definition Service.h:65
Service & WithServiceCode(const Aws::String &value)
Definition Service.h:51
bool ServiceCodeHasBeenSet() const
Definition Service.h:47
bool AttributeNamesHasBeenSet() const
Definition Service.h:61
void SetServiceCode(const Aws::String &value)
Definition Service.h:48
void SetServiceCode(Aws::String &&value)
Definition Service.h:49
void SetAttributeNames(const Aws::Vector< Aws::String > &value)
Definition Service.h:62
Service & WithServiceCode(const char *value)
Definition Service.h:53
AWS_PRICING_API Service()
void SetAttributeNames(Aws::Vector< Aws::String > &&value)
Definition Service.h:63
void SetServiceCode(const char *value)
Definition Service.h:50
AWS_PRICING_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetServiceCode() const
Definition Service.h:46
const Aws::Vector< Aws::String > & GetAttributeNames() const
Definition Service.h:60
AWS_PRICING_API Service(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue