AWS SDK for C++

AWS SDK for C++ Version 1.11.635

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#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 Batch
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BATCH_API ServiceResourceId() = default;
38 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline ServiceResourceIdName GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(ServiceResourceIdName value) { m_nameHasBeenSet = true; m_name = value; }
48 inline ServiceResourceId& WithName(ServiceResourceIdName value) { SetName(value); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
59 template<typename ValueT = Aws::String>
60 ServiceResourceId& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
62 private:
63
65 bool m_nameHasBeenSet = false;
66
67 Aws::String m_value;
68 bool m_valueHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace Batch
73} // 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