AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAccessLogSubscriptionRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/ServiceNetworkLogType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace VPCLattice
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_VPCLATTICE_API CreateAccessLogSubscriptionRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessLogSubscription"; }
34
35 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
36
37
39
45 inline const Aws::String& GetClientToken() const { return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreateAccessLogSubscriptionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
59 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
60 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
61 template<typename DestinationArnT = Aws::String>
62 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
63 template<typename DestinationArnT = Aws::String>
64 CreateAccessLogSubscriptionRequest& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetResourceIdentifier() const { return m_resourceIdentifier; }
72 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
73 template<typename ResourceIdentifierT = Aws::String>
74 void SetResourceIdentifier(ResourceIdentifierT&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::forward<ResourceIdentifierT>(value); }
75 template<typename ResourceIdentifierT = Aws::String>
76 CreateAccessLogSubscriptionRequest& WithResourceIdentifier(ResourceIdentifierT&& value) { SetResourceIdentifier(std::forward<ResourceIdentifierT>(value)); return *this;}
78
80
83 inline ServiceNetworkLogType GetServiceNetworkLogType() const { return m_serviceNetworkLogType; }
84 inline bool ServiceNetworkLogTypeHasBeenSet() const { return m_serviceNetworkLogTypeHasBeenSet; }
85 inline void SetServiceNetworkLogType(ServiceNetworkLogType value) { m_serviceNetworkLogTypeHasBeenSet = true; m_serviceNetworkLogType = value; }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 CreateAccessLogSubscriptionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
99 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
100 CreateAccessLogSubscriptionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
101 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
102 }
104 private:
105
107 bool m_clientTokenHasBeenSet = true;
108
109 Aws::String m_destinationArn;
110 bool m_destinationArnHasBeenSet = false;
111
112 Aws::String m_resourceIdentifier;
113 bool m_resourceIdentifierHasBeenSet = false;
114
116 bool m_serviceNetworkLogTypeHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace VPCLattice
124} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_VPCLATTICE_API CreateAccessLogSubscriptionRequest()=default
CreateAccessLogSubscriptionRequest & WithDestinationArn(DestinationArnT &&value)
CreateAccessLogSubscriptionRequest & WithServiceNetworkLogType(ServiceNetworkLogType value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAccessLogSubscriptionRequest & WithClientToken(ClientTokenT &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
CreateAccessLogSubscriptionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAccessLogSubscriptionRequest & WithResourceIdentifier(ResourceIdentifierT &&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