AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PackageGroupAllowedRepository.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageGroupOriginRestrictionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeArtifact {
21namespace Model {
22
30 public:
31 AWS_CODEARTIFACT_API PackageGroupAllowedRepository() = default;
34 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
41 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
42 template <typename RepositoryNameT = Aws::String>
43 void SetRepositoryName(RepositoryNameT&& value) {
44 m_repositoryNameHasBeenSet = true;
45 m_repositoryName = std::forward<RepositoryNameT>(value);
46 }
47 template <typename RepositoryNameT = Aws::String>
49 SetRepositoryName(std::forward<RepositoryNameT>(value));
50 return *this;
51 }
53
55
58 inline PackageGroupOriginRestrictionType GetOriginRestrictionType() const { return m_originRestrictionType; }
59 inline bool OriginRestrictionTypeHasBeenSet() const { return m_originRestrictionTypeHasBeenSet; }
61 m_originRestrictionTypeHasBeenSet = true;
62 m_originRestrictionType = value;
63 }
66 return *this;
67 }
69 private:
70 Aws::String m_repositoryName;
71
73 bool m_repositoryNameHasBeenSet = false;
74 bool m_originRestrictionTypeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace CodeArtifact
79} // namespace Aws
PackageGroupAllowedRepository & WithRepositoryName(RepositoryNameT &&value)
AWS_CODEARTIFACT_API PackageGroupAllowedRepository()=default
PackageGroupAllowedRepository & WithOriginRestrictionType(PackageGroupOriginRestrictionType value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEARTIFACT_API PackageGroupAllowedRepository & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOriginRestrictionType(PackageGroupOriginRestrictionType value)
AWS_CODEARTIFACT_API PackageGroupAllowedRepository(Aws::Utils::Json::JsonView jsonValue)
PackageGroupOriginRestrictionType GetOriginRestrictionType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue