AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateConnectionRequest.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/AppRunnerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apprunner/model/ProviderType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apprunner/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppRunner
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPRUNNER_API CreateConnectionRequest() = 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 "CreateConnection"; }
34
35 AWS_APPRUNNER_API Aws::String SerializePayload() const override;
36
38
39
41
46 inline const Aws::String& GetConnectionName() const { return m_connectionName; }
47 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
48 template<typename ConnectionNameT = Aws::String>
49 void SetConnectionName(ConnectionNameT&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::forward<ConnectionNameT>(value); }
50 template<typename ConnectionNameT = Aws::String>
51 CreateConnectionRequest& WithConnectionName(ConnectionNameT&& value) { SetConnectionName(std::forward<ConnectionNameT>(value)); return *this;}
53
55
58 inline ProviderType GetProviderType() const { return m_providerType; }
59 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
60 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
63
65
69 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
70 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
71 template<typename TagsT = Aws::Vector<Tag>>
72 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
73 template<typename TagsT = Aws::Vector<Tag>>
74 CreateConnectionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
75 template<typename TagsT = Tag>
76 CreateConnectionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
78 private:
79
80 Aws::String m_connectionName;
81 bool m_connectionNameHasBeenSet = false;
82
83 ProviderType m_providerType{ProviderType::NOT_SET};
84 bool m_providerTypeHasBeenSet = false;
85
86 Aws::Vector<Tag> m_tags;
87 bool m_tagsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace AppRunner
92} // namespace Aws
CreateConnectionRequest & AddTags(TagsT &&value)
CreateConnectionRequest & WithConnectionName(ConnectionNameT &&value)
AWS_APPRUNNER_API CreateConnectionRequest()=default
CreateConnectionRequest & WithTags(TagsT &&value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_APPRUNNER_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithProviderType(ProviderType value)
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