AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResourceUri.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/ResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API ResourceUri() = default;
31 AWS_GLUE_API ResourceUri(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline ResourceType GetResourceType() const { return m_resourceType; }
40 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
41 inline void SetResourceType(ResourceType value) {
42 m_resourceTypeHasBeenSet = true;
43 m_resourceType = value;
44 }
46 SetResourceType(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetUri() const { return m_uri; }
56 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
57 template <typename UriT = Aws::String>
58 void SetUri(UriT&& value) {
59 m_uriHasBeenSet = true;
60 m_uri = std::forward<UriT>(value);
61 }
62 template <typename UriT = Aws::String>
63 ResourceUri& WithUri(UriT&& value) {
64 SetUri(std::forward<UriT>(value));
65 return *this;
66 }
68 private:
69 ResourceType m_resourceType{ResourceType::NOT_SET};
70
71 Aws::String m_uri;
72 bool m_resourceTypeHasBeenSet = false;
73 bool m_uriHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Glue
78} // namespace Aws
bool ResourceTypeHasBeenSet() const
Definition ResourceUri.h:40
AWS_GLUE_API ResourceUri(Aws::Utils::Json::JsonView jsonValue)
void SetUri(UriT &&value)
Definition ResourceUri.h:58
ResourceUri & WithUri(UriT &&value)
Definition ResourceUri.h:63
AWS_GLUE_API ResourceUri & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(ResourceType value)
Definition ResourceUri.h:41
ResourceUri & WithResourceType(ResourceType value)
Definition ResourceUri.h:45
const Aws::String & GetUri() const
Definition ResourceUri.h:55
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API ResourceUri()=default
ResourceType GetResourceType() const
Definition ResourceUri.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue