AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ConfigurationId.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mq/MQ_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MQ {
20namespace Model {
21
28 public:
29 AWS_MQ_API ConfigurationId() = default;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
46 ConfigurationId& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline int GetRevision() const { return m_revision; }
57 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
58 inline void SetRevision(int value) {
59 m_revisionHasBeenSet = true;
60 m_revision = value;
61 }
62 inline ConfigurationId& WithRevision(int value) {
63 SetRevision(value);
64 return *this;
65 }
67 private:
68 Aws::String m_id;
69
70 int m_revision{0};
71 bool m_idHasBeenSet = false;
72 bool m_revisionHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace MQ
77} // namespace Aws
AWS_MQ_API ConfigurationId()=default
AWS_MQ_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MQ_API ConfigurationId(Aws::Utils::Json::JsonView jsonValue)
ConfigurationId & WithRevision(int value)
AWS_MQ_API ConfigurationId & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigurationId & WithId(IdT &&value)
const Aws::String & GetId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue