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/ssm-sap/SsmSap_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 SsmSap
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSMSAP_API Resource();
36 AWS_SSMSAP_API Resource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SSMSAP_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
48 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
49 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
50 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
51 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
52 inline Resource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
53 inline Resource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
54 inline Resource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
56
58
63 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
64 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
65 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
66 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
67 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
68 inline Resource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
69 inline Resource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
70 inline Resource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
72 private:
73
74 Aws::String m_resourceArn;
75 bool m_resourceArnHasBeenSet = false;
76
77 Aws::String m_resourceType;
78 bool m_resourceTypeHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace SsmSap
83} // namespace Aws
void SetResourceType(const Aws::String &value)
Definition Resource.h:65
void SetResourceArn(Aws::String &&value)
Definition Resource.h:50
Resource & WithResourceType(const char *value)
Definition Resource.h:70
void SetResourceArn(const Aws::String &value)
Definition Resource.h:49
void SetResourceType(const char *value)
Definition Resource.h:67
const Aws::String & GetResourceType() const
Definition Resource.h:63
void SetResourceType(Aws::String &&value)
Definition Resource.h:66
bool ResourceArnHasBeenSet() const
Definition Resource.h:48
Resource & WithResourceType(Aws::String &&value)
Definition Resource.h:69
Resource & WithResourceArn(const Aws::String &value)
Definition Resource.h:52
void SetResourceArn(const char *value)
Definition Resource.h:51
bool ResourceTypeHasBeenSet() const
Definition Resource.h:64
AWS_SSMSAP_API Resource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceArn() const
Definition Resource.h:47
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & WithResourceType(const Aws::String &value)
Definition Resource.h:68
Resource & WithResourceArn(Aws::String &&value)
Definition Resource.h:53
Resource & WithResourceArn(const char *value)
Definition Resource.h:54
AWS_SSMSAP_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