AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetViolationDetailsRequest.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace FMS
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_FMS_API GetViolationDetailsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetViolationDetails"; }
31
32 AWS_FMS_API Aws::String SerializePayload() const override;
33
35
36
38
45 inline const Aws::String& GetPolicyId() const { return m_policyId; }
46 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
47 template<typename PolicyIdT = Aws::String>
48 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
49 template<typename PolicyIdT = Aws::String>
50 GetViolationDetailsRequest& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetMemberAccount() const { return m_memberAccount; }
58 inline bool MemberAccountHasBeenSet() const { return m_memberAccountHasBeenSet; }
59 template<typename MemberAccountT = Aws::String>
60 void SetMemberAccount(MemberAccountT&& value) { m_memberAccountHasBeenSet = true; m_memberAccount = std::forward<MemberAccountT>(value); }
61 template<typename MemberAccountT = Aws::String>
62 GetViolationDetailsRequest& WithMemberAccount(MemberAccountT&& value) { SetMemberAccount(std::forward<MemberAccountT>(value)); return *this;}
64
66
69 inline const Aws::String& GetResourceId() const { return m_resourceId; }
70 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
71 template<typename ResourceIdT = Aws::String>
72 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
73 template<typename ResourceIdT = Aws::String>
74 GetViolationDetailsRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
76
78
87 inline const Aws::String& GetResourceType() const { return m_resourceType; }
88 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
89 template<typename ResourceTypeT = Aws::String>
90 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
91 template<typename ResourceTypeT = Aws::String>
92 GetViolationDetailsRequest& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
94 private:
95
96 Aws::String m_policyId;
97 bool m_policyIdHasBeenSet = false;
98
99 Aws::String m_memberAccount;
100 bool m_memberAccountHasBeenSet = false;
101
102 Aws::String m_resourceId;
103 bool m_resourceIdHasBeenSet = false;
104
105 Aws::String m_resourceType;
106 bool m_resourceTypeHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace FMS
111} // 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