AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; }
50 inline void SetRestrictions(const Aws::Map<PackageGroupOriginRestrictionType, PackageGroupOriginRestriction>& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; }
51 inline void SetRestrictions(Aws::Map<PackageGroupOriginRestrictionType, PackageGroupOriginRestriction>&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); }
54 inline PackageGroupOriginConfiguration& AddRestrictions(const PackageGroupOriginRestrictionType& key, const PackageGroupOriginRestriction& value) { m_restrictionsHasBeenSet = true; m_restrictions.emplace(key, value); return *this; }
55 inline PackageGroupOriginConfiguration& AddRestrictions(PackageGroupOriginRestrictionType&& key, const PackageGroupOriginRestriction& value) { m_restrictionsHasBeenSet = true; m_restrictions.emplace(std::move(key), value); return *this; }
56 inline PackageGroupOriginConfiguration& AddRestrictions(const PackageGroupOriginRestrictionType& key, PackageGroupOriginRestriction&& value) { m_restrictionsHasBeenSet = true; m_restrictions.emplace(key, std::move(value)); return *this; }
57 inline PackageGroupOriginConfiguration& AddRestrictions(PackageGroupOriginRestrictionType&& key, PackageGroupOriginRestriction&& value) { m_restrictionsHasBeenSet = true; m_restrictions.emplace(std::move(key), std::move(value)); return *this; }
59 private:
60
62 bool m_restrictionsHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace CodeArtifact
67} // namespace Aws
AWS_CODEARTIFACT_API PackageGroupOriginConfiguration(Aws::Utils::Json::JsonView jsonValue)
PackageGroupOriginConfiguration & AddRestrictions(PackageGroupOriginRestrictionType &&key, PackageGroupOriginRestriction &&value)
PackageGroupOriginConfiguration & AddRestrictions(const PackageGroupOriginRestrictionType &key, const PackageGroupOriginRestriction &value)
const Aws::Map< PackageGroupOriginRestrictionType, PackageGroupOriginRestriction > & GetRestrictions() const
PackageGroupOriginConfiguration & AddRestrictions(PackageGroupOriginRestrictionType &&key, const PackageGroupOriginRestriction &value)
PackageGroupOriginConfiguration & AddRestrictions(const PackageGroupOriginRestrictionType &key, PackageGroupOriginRestriction &&value)
void SetRestrictions(Aws::Map< PackageGroupOriginRestrictionType, PackageGroupOriginRestriction > &&value)
void SetRestrictions(const Aws::Map< PackageGroupOriginRestrictionType, PackageGroupOriginRestriction > &value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageGroupOriginConfiguration & WithRestrictions(Aws::Map< PackageGroupOriginRestrictionType, PackageGroupOriginRestriction > &&value)
AWS_CODEARTIFACT_API PackageGroupOriginConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageGroupOriginConfiguration & WithRestrictions(const Aws::Map< PackageGroupOriginRestrictionType, PackageGroupOriginRestriction > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue