AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceResourceId.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/ServiceResourceIdName.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Batch {
21namespace Model {
22
29 public:
30 AWS_BATCH_API ServiceResourceId() = default;
33 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline ServiceResourceIdName GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 inline void SetName(ServiceResourceIdName value) {
42 m_nameHasBeenSet = true;
43 m_name = value;
44 }
46 SetName(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetValue() const { return m_value; }
56 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
57 template <typename ValueT = Aws::String>
58 void SetValue(ValueT&& value) {
59 m_valueHasBeenSet = true;
60 m_value = std::forward<ValueT>(value);
61 }
62 template <typename ValueT = Aws::String>
63 ServiceResourceId& WithValue(ValueT&& value) {
64 SetValue(std::forward<ValueT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_value;
72 bool m_nameHasBeenSet = false;
73 bool m_valueHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Batch
78} // namespace Aws
AWS_BATCH_API ServiceResourceId(Aws::Utils::Json::JsonView jsonValue)
ServiceResourceId & WithName(ServiceResourceIdName value)
const Aws::String & GetValue() const
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(ServiceResourceIdName value)
ServiceResourceIdName GetName() const
ServiceResourceId & WithValue(ValueT &&value)
AWS_BATCH_API ServiceResourceId()=default
AWS_BATCH_API ServiceResourceId & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue