AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
AffectedResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/InvestigationResourceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API AffectedResource() = default;
32 AWS_GUARDDUTY_API AffectedResource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
48 AffectedResource& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
64 inline InvestigationResourceType GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 m_typeHasBeenSet = true;
68 m_type = value;
69 }
71 SetType(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetArn() const { return m_arn; }
81 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
82 template <typename ArnT = Aws::String>
83 void SetArn(ArnT&& value) {
84 m_arnHasBeenSet = true;
85 m_arn = std::forward<ArnT>(value);
86 }
87 template <typename ArnT = Aws::String>
88 AffectedResource& WithArn(ArnT&& value) {
89 SetArn(std::forward<ArnT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_identifier;
95
97
98 Aws::String m_arn;
99 bool m_identifierHasBeenSet = false;
100 bool m_typeHasBeenSet = false;
101 bool m_arnHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace GuardDuty
106} // namespace Aws
void SetIdentifier(IdentifierT &&value)
InvestigationResourceType GetType() const
AWS_GUARDDUTY_API AffectedResource()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AffectedResource & WithArn(ArnT &&value)
void SetType(InvestigationResourceType value)
AffectedResource & WithType(InvestigationResourceType value)
const Aws::String & GetIdentifier() const
AffectedResource & WithIdentifier(IdentifierT &&value)
AWS_GUARDDUTY_API AffectedResource(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API AffectedResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue