AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PackageGroupAllowedRepository.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codeartifact/model/PackageGroupOriginRestrictionType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeArtifact
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODEARTIFACT_API PackageGroupAllowedRepository() = default;
39 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
47 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
48 template<typename RepositoryNameT = Aws::String>
49 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
50 template<typename RepositoryNameT = Aws::String>
51 PackageGroupAllowedRepository& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
53
55
58 inline PackageGroupOriginRestrictionType GetOriginRestrictionType() const { return m_originRestrictionType; }
59 inline bool OriginRestrictionTypeHasBeenSet() const { return m_originRestrictionTypeHasBeenSet; }
60 inline void SetOriginRestrictionType(PackageGroupOriginRestrictionType value) { m_originRestrictionTypeHasBeenSet = true; m_originRestrictionType = value; }
63 private:
64
65 Aws::String m_repositoryName;
66 bool m_repositoryNameHasBeenSet = false;
67
69 bool m_originRestrictionTypeHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace CodeArtifact
74} // 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