AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateResolverQueryLogConfigRequest.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/route53resolver/Route53ResolverRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53resolver/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Route53Resolver
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ROUTE53RESOLVER_API CreateResolverQueryLogConfigRequest() = 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 "CreateResolverQueryLogConfig"; }
34
35 AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override;
36
37 AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateResolverQueryLogConfigRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
67 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
68 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
69 template<typename DestinationArnT = Aws::String>
70 void SetDestinationArn(DestinationArnT&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::forward<DestinationArnT>(value); }
71 template<typename DestinationArnT = Aws::String>
72 CreateResolverQueryLogConfigRequest& WithDestinationArn(DestinationArnT&& value) { SetDestinationArn(std::forward<DestinationArnT>(value)); return *this;}
74
76
82 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
83 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
84 template<typename CreatorRequestIdT = Aws::String>
85 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
86 template<typename CreatorRequestIdT = Aws::String>
87 CreateResolverQueryLogConfigRequest& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
89
91
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Vector<Tag>>
100 CreateResolverQueryLogConfigRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsT = Tag>
102 CreateResolverQueryLogConfigRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
104 private:
105
106 Aws::String m_name;
107 bool m_nameHasBeenSet = false;
108
109 Aws::String m_destinationArn;
110 bool m_destinationArnHasBeenSet = false;
111
113 bool m_creatorRequestIdHasBeenSet = true;
114
115 Aws::Vector<Tag> m_tags;
116 bool m_tagsHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace Route53Resolver
121} // namespace Aws
CreateResolverQueryLogConfigRequest & WithDestinationArn(DestinationArnT &&value)
AWS_ROUTE53RESOLVER_API CreateResolverQueryLogConfigRequest()=default
CreateResolverQueryLogConfigRequest & WithCreatorRequestId(CreatorRequestIdT &&value)
AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector