AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetIPSetResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/IpSetFormat.h>
10#include <aws/guardduty/model/IpSetStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty
27{
28namespace Model
29{
31 {
32 public:
33 AWS_GUARDDUTY_API GetIPSetResult() = default;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 GetIPSetResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline IpSetFormat GetFormat() const { return m_format; }
54 inline void SetFormat(IpSetFormat value) { m_formatHasBeenSet = true; m_format = value; }
55 inline GetIPSetResult& WithFormat(IpSetFormat value) { SetFormat(value); return *this;}
57
59
62 inline const Aws::String& GetLocation() const { return m_location; }
63 template<typename LocationT = Aws::String>
64 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
65 template<typename LocationT = Aws::String>
66 GetIPSetResult& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
68
70
73 inline IpSetStatus GetStatus() const { return m_status; }
74 inline void SetStatus(IpSetStatus value) { m_statusHasBeenSet = true; m_status = value; }
75 inline GetIPSetResult& WithStatus(IpSetStatus value) { SetStatus(value); return *this;}
77
79
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 GetIPSetResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
87 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 GetIPSetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
90 }
92
94
99 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
100 template<typename ExpectedBucketOwnerT = Aws::String>
101 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value); }
102 template<typename ExpectedBucketOwnerT = Aws::String>
103 GetIPSetResult& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) { SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value)); return *this;}
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template<typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
111 template<typename RequestIdT = Aws::String>
112 GetIPSetResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
114 private:
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
120 bool m_formatHasBeenSet = false;
121
122 Aws::String m_location;
123 bool m_locationHasBeenSet = false;
124
126 bool m_statusHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130
131 Aws::String m_expectedBucketOwner;
132 bool m_expectedBucketOwnerHasBeenSet = false;
133
134 Aws::String m_requestId;
135 bool m_requestIdHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace GuardDuty
140} // namespace Aws
GetIPSetResult & WithStatus(IpSetStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetRequestId() const
GetIPSetResult & WithRequestId(RequestIdT &&value)
AWS_GUARDDUTY_API GetIPSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_GUARDDUTY_API GetIPSetResult()=default
GetIPSetResult & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_GUARDDUTY_API GetIPSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLocation(LocationT &&value)
const Aws::String & GetLocation() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetExpectedBucketOwner() const
GetIPSetResult & WithLocation(LocationT &&value)
const Aws::String & GetName() const
GetIPSetResult & WithFormat(IpSetFormat value)
GetIPSetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetIPSetResult & WithName(NameT &&value)
GetIPSetResult & WithTags(TagsT &&value)
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