AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline Resource& WithId(const char* value) { SetId(value); return *this;}
56
58
62 inline const Aws::String& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
67 inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
68 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
69 inline Resource& WithType(const char* value) { SetType(value); return *this;}
71 private:
72
73 Aws::String m_id;
74 bool m_idHasBeenSet = false;
75
76 Aws::String m_type;
77 bool m_typeHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace AgreementService
82} // namespace Aws
Resource & WithId(const Aws::String &value)
Definition Resource.h:52
const Aws::String & GetId() const
Definition Resource.h:47
const Aws::String & GetType() const
Definition Resource.h:62
Resource & WithId(const char *value)
Definition Resource.h:54
AWS_AGREEMENTSERVICE_API Resource(Aws::Utils::Json::JsonView jsonValue)
void SetType(const char *value)
Definition Resource.h:66
void SetType(Aws::String &&value)
Definition Resource.h:65
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const char *value)
Definition Resource.h:51
void SetType(const Aws::String &value)
Definition Resource.h:64
void SetId(const Aws::String &value)
Definition Resource.h:49
void SetId(Aws::String &&value)
Definition Resource.h:50
AWS_AGREEMENTSERVICE_API Resource()
Resource & WithType(const Aws::String &value)
Definition Resource.h:67
Resource & WithId(Aws::String &&value)
Definition Resource.h:53
AWS_AGREEMENTSERVICE_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
Resource & WithType(const char *value)
Definition Resource.h:69
Resource & WithType(Aws::String &&value)
Definition Resource.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue