AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace VPCLattice
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAccessLogSubscription"; }
33
34 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
35
36
38
44 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
45 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
46 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
47 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
48 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreateAccessLogSubscriptionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
51 inline CreateAccessLogSubscriptionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
53
55
60 inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
61 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
62 inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
63 inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
64 inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
66 inline CreateAccessLogSubscriptionRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
67 inline CreateAccessLogSubscriptionRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
69
71
74 inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; }
75 inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; }
76 inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; }
77 inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); }
78 inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); }
81 inline CreateAccessLogSubscriptionRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline CreateAccessLogSubscriptionRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
95 inline CreateAccessLogSubscriptionRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
96 inline CreateAccessLogSubscriptionRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline CreateAccessLogSubscriptionRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
98 inline CreateAccessLogSubscriptionRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline CreateAccessLogSubscriptionRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline CreateAccessLogSubscriptionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102 private:
103
104 Aws::String m_clientToken;
105 bool m_clientTokenHasBeenSet = false;
106
107 Aws::String m_destinationArn;
108 bool m_destinationArnHasBeenSet = false;
109
110 Aws::String m_resourceIdentifier;
111 bool m_resourceIdentifierHasBeenSet = false;
112
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace VPCLattice
119} // namespace Aws
CreateAccessLogSubscriptionRequest & WithClientToken(const Aws::String &value)
CreateAccessLogSubscriptionRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAccessLogSubscriptionRequest & AddTags(const char *key, const char *value)
CreateAccessLogSubscriptionRequest & WithDestinationArn(const Aws::String &value)
CreateAccessLogSubscriptionRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAccessLogSubscriptionRequest & WithClientToken(Aws::String &&value)
CreateAccessLogSubscriptionRequest & AddTags(Aws::String &&key, const char *value)
CreateAccessLogSubscriptionRequest & WithResourceIdentifier(const char *value)
CreateAccessLogSubscriptionRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAccessLogSubscriptionRequest & WithClientToken(const char *value)
CreateAccessLogSubscriptionRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAccessLogSubscriptionRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAccessLogSubscriptionRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAccessLogSubscriptionRequest & WithResourceIdentifier(const Aws::String &value)
CreateAccessLogSubscriptionRequest & WithDestinationArn(Aws::String &&value)
CreateAccessLogSubscriptionRequest & WithDestinationArn(const char *value)
CreateAccessLogSubscriptionRequest & WithResourceIdentifier(Aws::String &&value)
CreateAccessLogSubscriptionRequest & AddTags(Aws::String &&key, Aws::String &&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