AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRepositoryLinkRequest.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/codeconnections/CodeConnectionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codeconnections/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeConnections
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CODECONNECTIONS_API CreateRepositoryLinkRequest();
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 "CreateRepositoryLink"; }
33
34 AWS_CODECONNECTIONS_API Aws::String SerializePayload() const override;
35
36 AWS_CODECONNECTIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; }
45 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
46 inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; }
47 inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); }
48 inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); }
49 inline CreateRepositoryLinkRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;}
50 inline CreateRepositoryLinkRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;}
51 inline CreateRepositoryLinkRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;}
53
55
59 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
60 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
61 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
62 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
63 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
64 inline CreateRepositoryLinkRequest& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
65 inline CreateRepositoryLinkRequest& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
66 inline CreateRepositoryLinkRequest& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
68
70
73 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
74 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
75 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
76 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
77 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
78 inline CreateRepositoryLinkRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
79 inline CreateRepositoryLinkRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
80 inline CreateRepositoryLinkRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
82
84
88 inline const Aws::String& GetEncryptionKeyArn() const{ return m_encryptionKeyArn; }
89 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
90 inline void SetEncryptionKeyArn(const Aws::String& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = value; }
91 inline void SetEncryptionKeyArn(Aws::String&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::move(value); }
92 inline void SetEncryptionKeyArn(const char* value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn.assign(value); }
94 inline CreateRepositoryLinkRequest& WithEncryptionKeyArn(Aws::String&& value) { SetEncryptionKeyArn(std::move(value)); return *this;}
95 inline CreateRepositoryLinkRequest& WithEncryptionKeyArn(const char* value) { SetEncryptionKeyArn(value); return *this;}
97
99
102 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
105 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline CreateRepositoryLinkRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
107 inline CreateRepositoryLinkRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
108 inline CreateRepositoryLinkRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
109 inline CreateRepositoryLinkRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
111 private:
112
113 Aws::String m_connectionArn;
114 bool m_connectionArnHasBeenSet = false;
115
116 Aws::String m_ownerId;
117 bool m_ownerIdHasBeenSet = false;
118
119 Aws::String m_repositoryName;
120 bool m_repositoryNameHasBeenSet = false;
121
122 Aws::String m_encryptionKeyArn;
123 bool m_encryptionKeyArnHasBeenSet = false;
124
125 Aws::Vector<Tag> m_tags;
126 bool m_tagsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CodeConnections
131} // namespace Aws
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