AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_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 AgreementService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_AGREEMENTSERVICE_API Resource() = default;
36 AWS_AGREEMENTSERVICE_API Resource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGREEMENTSERVICE_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 Resource& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template<typename TypeT = Aws::String>
63 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
64 template<typename TypeT = Aws::String>
65 Resource& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
67 private:
68
69 Aws::String m_id;
70 bool m_idHasBeenSet = false;
71
72 Aws::String m_type;
73 bool m_typeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AgreementService
78} // namespace Aws
const Aws::String & GetId() const
Definition Resource.h:47
const Aws::String & GetType() const
Definition Resource.h:60
AWS_AGREEMENTSERVICE_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithId(IdT &&value)
Definition Resource.h:52
Resource & WithType(TypeT &&value)
Definition Resource.h:65
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AGREEMENTSERVICE_API Resource()=default
AWS_AGREEMENTSERVICE_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue