AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace FMS {
20namespace Model {
21
28class Resource {
29 public:
30 AWS_FMS_API Resource() = default;
31 AWS_FMS_API Resource(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_FMS_API Resource& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetURI() const { return m_uRI; }
40 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
41 template <typename URIT = Aws::String>
42 void SetURI(URIT&& value) {
43 m_uRIHasBeenSet = true;
44 m_uRI = std::forward<URIT>(value);
45 }
46 template <typename URIT = Aws::String>
47 Resource& WithURI(URIT&& value) {
48 SetURI(std::forward<URIT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetAccountId() const { return m_accountId; }
59 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
60 template <typename AccountIdT = Aws::String>
61 void SetAccountId(AccountIdT&& value) {
62 m_accountIdHasBeenSet = true;
63 m_accountId = std::forward<AccountIdT>(value);
64 }
65 template <typename AccountIdT = Aws::String>
66 Resource& WithAccountId(AccountIdT&& value) {
67 SetAccountId(std::forward<AccountIdT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_uRI;
73
74 Aws::String m_accountId;
75 bool m_uRIHasBeenSet = false;
76 bool m_accountIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace FMS
81} // namespace Aws
AWS_FMS_API Resource & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_FMS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Resource & WithAccountId(AccountIdT &&value)
Definition Resource.h:66
bool URIHasBeenSet() const
Definition Resource.h:40
const Aws::String & GetAccountId() const
Definition Resource.h:58
bool AccountIdHasBeenSet() const
Definition Resource.h:59
AWS_FMS_API Resource(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetURI(URIT &&value)
Definition Resource.h:42
AWS_FMS_API Resource()=default
void SetAccountId(AccountIdT &&value)
Definition Resource.h:61
Resource & WithURI(URIT &&value)
Definition Resource.h:47
const Aws::String & GetURI() const
Definition Resource.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String