AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PackageGroupOriginConfiguration.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/codeartifact/model/PackageGroupOriginRestrictionType.h>
10#include <aws/codeartifact/model/PackageGroupOriginRestriction.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEARTIFACT_API PackageGroupOriginConfiguration() = default;
40 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
50 template<typename RestrictionsT = Aws::Map<PackageGroupOriginRestrictionType, PackageGroupOriginRestriction>>
51 void SetRestrictions(RestrictionsT&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::forward<RestrictionsT>(value); }
52 template<typename RestrictionsT = Aws::Map<PackageGroupOriginRestrictionType, PackageGroupOriginRestriction>>
53 PackageGroupOriginConfiguration& WithRestrictions(RestrictionsT&& value) { SetRestrictions(std::forward<RestrictionsT>(value)); return *this;}
55 m_restrictionsHasBeenSet = true; m_restrictions.emplace(key, value); return *this;
56 }
58 private:
59
61 bool m_restrictionsHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace CodeArtifact
66} // namespace Aws
AWS_CODEARTIFACT_API PackageGroupOriginConfiguration(Aws::Utils::Json::JsonView jsonValue)
PackageGroupOriginConfiguration & WithRestrictions(RestrictionsT &&value)
PackageGroupOriginConfiguration & AddRestrictions(PackageGroupOriginRestrictionType key, PackageGroupOriginRestriction value)
const Aws::Map< PackageGroupOriginRestrictionType, PackageGroupOriginRestriction > & GetRestrictions() const
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEARTIFACT_API PackageGroupOriginConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageGroupOriginConfiguration()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue