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/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/CodeConnectionsRequest.h>
9#include <aws/codeconnections/model/ProviderType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codeconnections/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeConnections
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODECONNECTIONS_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_CODECONNECTIONS_API Aws::String SerializePayload() const override;
36
37 AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const ProviderType& GetProviderType() const{ return m_providerType; }
46 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
47 inline void SetProviderType(const ProviderType& value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
48 inline void SetProviderType(ProviderType&& value) { m_providerTypeHasBeenSet = true; m_providerType = std::move(value); }
49 inline CreateConnectionRequest& WithProviderType(const ProviderType& value) { SetProviderType(value); return *this;}
50 inline CreateConnectionRequest& WithProviderType(ProviderType&& value) { SetProviderType(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetConnectionName() const{ return m_connectionName; }
58 inline bool ConnectionNameHasBeenSet() const { return m_connectionNameHasBeenSet; }
59 inline void SetConnectionName(const Aws::String& value) { m_connectionNameHasBeenSet = true; m_connectionName = value; }
60 inline void SetConnectionName(Aws::String&& value) { m_connectionNameHasBeenSet = true; m_connectionName = std::move(value); }
61 inline void SetConnectionName(const char* value) { m_connectionNameHasBeenSet = true; m_connectionName.assign(value); }
62 inline CreateConnectionRequest& WithConnectionName(const Aws::String& value) { SetConnectionName(value); return *this;}
63 inline CreateConnectionRequest& WithConnectionName(Aws::String&& value) { SetConnectionName(std::move(value)); return *this;}
64 inline CreateConnectionRequest& WithConnectionName(const char* value) { SetConnectionName(value); return *this;}
66
68
71 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
74 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
75 inline CreateConnectionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
76 inline CreateConnectionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
77 inline CreateConnectionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
78 inline CreateConnectionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
80
82
86 inline const Aws::String& GetHostArn() const{ return m_hostArn; }
87 inline bool HostArnHasBeenSet() const { return m_hostArnHasBeenSet; }
88 inline void SetHostArn(const Aws::String& value) { m_hostArnHasBeenSet = true; m_hostArn = value; }
89 inline void SetHostArn(Aws::String&& value) { m_hostArnHasBeenSet = true; m_hostArn = std::move(value); }
90 inline void SetHostArn(const char* value) { m_hostArnHasBeenSet = true; m_hostArn.assign(value); }
91 inline CreateConnectionRequest& WithHostArn(const Aws::String& value) { SetHostArn(value); return *this;}
92 inline CreateConnectionRequest& WithHostArn(Aws::String&& value) { SetHostArn(std::move(value)); return *this;}
93 inline CreateConnectionRequest& WithHostArn(const char* value) { SetHostArn(value); return *this;}
95 private:
96
97 ProviderType m_providerType;
98 bool m_providerTypeHasBeenSet = false;
99
100 Aws::String m_connectionName;
101 bool m_connectionNameHasBeenSet = false;
102
103 Aws::Vector<Tag> m_tags;
104 bool m_tagsHasBeenSet = false;
105
106 Aws::String m_hostArn;
107 bool m_hostArnHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CodeConnections
112} // namespace Aws
CreateConnectionRequest & WithHostArn(const char *value)
CreateConnectionRequest & WithHostArn(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateConnectionRequest & WithProviderType(ProviderType &&value)
CreateConnectionRequest & AddTags(const Tag &value)
CreateConnectionRequest & WithConnectionName(const char *value)
CreateConnectionRequest & WithConnectionName(const Aws::String &value)
AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override
CreateConnectionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateConnectionRequest & WithHostArn(Aws::String &&value)
CreateConnectionRequest & WithConnectionName(Aws::String &&value)
CreateConnectionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateConnectionRequest & WithProviderType(const ProviderType &value)
AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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