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/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/model/ResourceDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ECR_API Resource();
37 AWS_ECR_API Resource(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const ResourceDetails& GetDetails() const{ return m_details; }
47 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
48 inline void SetDetails(const ResourceDetails& value) { m_detailsHasBeenSet = true; m_details = value; }
49 inline void SetDetails(ResourceDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
50 inline Resource& WithDetails(const ResourceDetails& value) { SetDetails(value); return *this;}
51 inline Resource& WithDetails(ResourceDetails&& value) { SetDetails(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetId() const{ return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
61 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
62 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
64 inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
65 inline Resource& WithId(const char* value) { SetId(value); return *this;}
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
75 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
76 inline Resource& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
77 inline Resource& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
78 inline Resource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
79 inline Resource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
80 inline Resource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline Resource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
82 inline Resource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
83 inline Resource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
84 inline Resource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
86
88
91 inline const Aws::String& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
96 inline Resource& WithType(const Aws::String& value) { SetType(value); return *this;}
97 inline Resource& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
98 inline Resource& WithType(const char* value) { SetType(value); return *this;}
100 private:
101
102 ResourceDetails m_details;
103 bool m_detailsHasBeenSet = false;
104
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110
111 Aws::String m_type;
112 bool m_typeHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace ECR
117} // namespace Aws
bool TypeHasBeenSet() const
Definition Resource.h:92
AWS_ECR_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition Resource.h:62
Resource & AddTags(const char *key, Aws::String &&value)
Definition Resource.h:82
Resource & WithDetails(ResourceDetails &&value)
Definition Resource.h:51
Resource & WithDetails(const ResourceDetails &value)
Definition Resource.h:50
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Resource.h:75
AWS_ECR_API Resource(Aws::Utils::Json::JsonView jsonValue)
Resource & WithId(const char *value)
Definition Resource.h:65
Resource & WithId(const Aws::String &value)
Definition Resource.h:63
Resource & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Resource.h:76
void SetType(const char *value)
Definition Resource.h:95
Resource & AddTags(Aws::String &&key, const char *value)
Definition Resource.h:83
bool IdHasBeenSet() const
Definition Resource.h:59
bool TagsHasBeenSet() const
Definition Resource.h:73
void SetDetails(ResourceDetails &&value)
Definition Resource.h:49
void SetDetails(const ResourceDetails &value)
Definition Resource.h:48
const Aws::String & GetId() const
Definition Resource.h:58
Resource & WithId(Aws::String &&value)
Definition Resource.h:64
const Aws::String & GetType() const
Definition Resource.h:91
Resource & AddTags(const Aws::String &key, Aws::String &&value)
Definition Resource.h:80
void SetType(const Aws::String &value)
Definition Resource.h:93
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Resource.h:74
Resource & AddTags(Aws::String &&key, const Aws::String &value)
Definition Resource.h:79
Resource & AddTags(const char *key, const char *value)
Definition Resource.h:84
Resource & WithType(Aws::String &&value)
Definition Resource.h:97
Resource & WithType(const char *value)
Definition Resource.h:98
void SetId(Aws::String &&value)
Definition Resource.h:61
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(Aws::String &&value)
Definition Resource.h:94
Resource & AddTags(const Aws::String &key, const Aws::String &value)
Definition Resource.h:78
Resource & WithType(const Aws::String &value)
Definition Resource.h:96
const ResourceDetails & GetDetails() const
Definition Resource.h:46
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Resource.h:72
Resource & AddTags(Aws::String &&key, Aws::String &&value)
Definition Resource.h:81
void SetId(const Aws::String &value)
Definition Resource.h:60
Resource & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Resource.h:77
bool DetailsHasBeenSet() const
Definition Resource.h:47
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue