AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
SharedResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API SharedResource() = default;
31 AWS_GUARDDUTY_API SharedResource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetResourceType() const { return m_resourceType; }
41 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
42 template <typename ResourceTypeT = Aws::String>
43 void SetResourceType(ResourceTypeT&& value) {
44 m_resourceTypeHasBeenSet = true;
45 m_resourceType = std::forward<ResourceTypeT>(value);
46 }
47 template <typename ResourceTypeT = Aws::String>
48 SharedResource& WithResourceType(ResourceTypeT&& value) {
49 SetResourceType(std::forward<ResourceTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetIdentifier() const { return m_identifier; }
59 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
60 template <typename IdentifierT = Aws::String>
61 void SetIdentifier(IdentifierT&& value) {
62 m_identifierHasBeenSet = true;
63 m_identifier = std::forward<IdentifierT>(value);
64 }
65 template <typename IdentifierT = Aws::String>
66 SharedResource& WithIdentifier(IdentifierT&& value) {
67 SetIdentifier(std::forward<IdentifierT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_resourceType;
73
74 Aws::String m_identifier;
75 bool m_resourceTypeHasBeenSet = false;
76 bool m_identifierHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace GuardDuty
81} // namespace Aws
AWS_GUARDDUTY_API SharedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceType() const
AWS_GUARDDUTY_API SharedResource()=default
const Aws::String & GetIdentifier() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(ResourceTypeT &&value)
AWS_GUARDDUTY_API SharedResource(Aws::Utils::Json::JsonView jsonValue)
void SetIdentifier(IdentifierT &&value)
SharedResource & WithIdentifier(IdentifierT &&value)
SharedResource & WithResourceType(ResourceTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue