AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetViolationDetailsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace FMS {
15namespace Model {
16
20 public:
21 AWS_FMS_API GetViolationDetailsRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetViolationDetails"; }
28
29 AWS_FMS_API Aws::String SerializePayload() const override;
30
32
34
41 inline const Aws::String& GetPolicyId() const { return m_policyId; }
42 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
43 template <typename PolicyIdT = Aws::String>
44 void SetPolicyId(PolicyIdT&& value) {
45 m_policyIdHasBeenSet = true;
46 m_policyId = std::forward<PolicyIdT>(value);
47 }
48 template <typename PolicyIdT = Aws::String>
50 SetPolicyId(std::forward<PolicyIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMemberAccount() const { return m_memberAccount; }
60 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
61 template <typename MemberAccountT = Aws::String>
62 void SetMemberAccount(MemberAccountT&& value) {
63 m_memberAccountHasBeenSet = true;
64 m_memberAccount = std::forward<MemberAccountT>(value);
65 }
66 template <typename MemberAccountT = Aws::String>
68 SetMemberAccount(std::forward<MemberAccountT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetResourceId() const { return m_resourceId; }
78 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
79 template <typename ResourceIdT = Aws::String>
80 void SetResourceId(ResourceIdT&& value) {
81 m_resourceIdHasBeenSet = true;
82 m_resourceId = std::forward<ResourceIdT>(value);
83 }
84 template <typename ResourceIdT = Aws::String>
86 SetResourceId(std::forward<ResourceIdT>(value));
87 return *this;
88 }
90
92
101 inline const Aws::String& GetResourceType() const { return m_resourceType; }
102 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
103 template <typename ResourceTypeT = Aws::String>
104 void SetResourceType(ResourceTypeT&& value) {
105 m_resourceTypeHasBeenSet = true;
106 m_resourceType = std::forward<ResourceTypeT>(value);
107 }
108 template <typename ResourceTypeT = Aws::String>
110 SetResourceType(std::forward<ResourceTypeT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_policyId;
116
117 Aws::String m_memberAccount;
118
119 Aws::String m_resourceId;
120
121 Aws::String m_resourceType;
122 bool m_policyIdHasBeenSet = false;
123 bool m_memberAccountHasBeenSet = false;
124 bool m_resourceIdHasBeenSet = false;
125 bool m_resourceTypeHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace FMS
130} // namespace Aws
GetViolationDetailsRequest & WithPolicyId(PolicyIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_FMS_API GetViolationDetailsRequest()=default
GetViolationDetailsRequest & WithResourceType(ResourceTypeT &&value)
GetViolationDetailsRequest & WithMemberAccount(MemberAccountT &&value)
AWS_FMS_API Aws::String SerializePayload() const override
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetViolationDetailsRequest & WithResourceId(ResourceIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String