AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
49 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
50 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
51 inline CreateConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
52 inline CreateConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
53 inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
55
57
60 inline const ProviderType& GetProviderType() const{ return m_providerType; }
61 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
62 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
63 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
64 inline CreateConnectionRequest& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
65 inline CreateConnectionRequest& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
67
69
73 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
76 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
77 inline CreateConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
78 inline CreateConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
79 inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
80 inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
82 private:
83
84 Aws::String m_connectionName;
85 bool m_connectionNameHasBeenSet = false;
86
87 ProviderType m_providerType;
88 bool m_providerTypeHasBeenSet = false;
89
90 Aws::Vector<Tag> m_tags;
91 bool m_tagsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AppRunner
96} // namespace Aws
CreateConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateConnectionRequest & AddTags(Tag &&value)
CreateConnectionRequest & WithProviderType(const ProviderType &value)
CreateConnectionRequest & WithConnectionName(const Aws::String &value)
AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithProviderType(ProviderType &&value)
CreateConnectionRequest & AddTags(const Tag &value)
CreateConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_APPRUNNER_API Aws::String SerializePayload() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateConnectionRequest & WithConnectionName(const char *value)
CreateConnectionRequest & WithConnectionName(Aws::String &&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