AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace FMS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_FMS_API Resource() = default;
36 AWS_FMS_API Resource(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetURI() const { return m_uRI; }
46 inline bool URIHasBeenSet() const { return m_uRIHasBeenSet; }
47 template<typename URIT = Aws::String>
48 void SetURI(URIT&& value) { m_uRIHasBeenSet = true; m_uRI = std::forward<URIT>(value); }
49 template<typename URIT = Aws::String>
50 Resource& WithURI(URIT&& value) { SetURI(std::forward<URIT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
62 template<typename AccountIdT = Aws::String>
63 Resource& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
65 private:
66
67 Aws::String m_uRI;
68 bool m_uRIHasBeenSet = false;
69
70 Aws::String m_accountId;
71 bool m_accountIdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace FMS
76} // namespace Aws
Resource & WithAccountId(AccountIdT &&value)
Definition Resource.h:63
bool URIHasBeenSet() const
Definition Resource.h:46
const Aws::String & GetAccountId() const
Definition Resource.h:58
bool AccountIdHasBeenSet() const
Definition Resource.h:59
void SetURI(URIT &&value)
Definition Resource.h:48
AWS_FMS_API Resource()=default
AWS_FMS_API Resource(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(AccountIdT &&value)
Definition Resource.h:61
Resource & WithURI(URIT &&value)
Definition Resource.h:50
const Aws::String & GetURI() const
Definition Resource.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue