AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProjectCache.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/CacheType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codebuild/model/CacheMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeBuild
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CODEBUILD_API ProjectCache() = default;
39 AWS_CODEBUILD_API ProjectCache(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEBUILD_API ProjectCache& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
53 inline CacheType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(CacheType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline ProjectCache& WithType(CacheType value) { SetType(value); return *this;}
58
60
65 inline const Aws::String& GetLocation() const { return m_location; }
66 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
67 template<typename LocationT = Aws::String>
68 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
69 template<typename LocationT = Aws::String>
70 ProjectCache& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
72
74
101 inline const Aws::Vector<CacheMode>& GetModes() const { return m_modes; }
102 inline bool ModesHasBeenSet() const { return m_modesHasBeenSet; }
103 template<typename ModesT = Aws::Vector<CacheMode>>
104 void SetModes(ModesT&& value) { m_modesHasBeenSet = true; m_modes = std::forward<ModesT>(value); }
105 template<typename ModesT = Aws::Vector<CacheMode>>
106 ProjectCache& WithModes(ModesT&& value) { SetModes(std::forward<ModesT>(value)); return *this;}
107 inline ProjectCache& AddModes(CacheMode value) { m_modesHasBeenSet = true; m_modes.push_back(value); return *this; }
109
111
117 inline const Aws::String& GetCacheNamespace() const { return m_cacheNamespace; }
118 inline bool CacheNamespaceHasBeenSet() const { return m_cacheNamespaceHasBeenSet; }
119 template<typename CacheNamespaceT = Aws::String>
120 void SetCacheNamespace(CacheNamespaceT&& value) { m_cacheNamespaceHasBeenSet = true; m_cacheNamespace = std::forward<CacheNamespaceT>(value); }
121 template<typename CacheNamespaceT = Aws::String>
122 ProjectCache& WithCacheNamespace(CacheNamespaceT&& value) { SetCacheNamespace(std::forward<CacheNamespaceT>(value)); return *this;}
124 private:
125
127 bool m_typeHasBeenSet = false;
128
129 Aws::String m_location;
130 bool m_locationHasBeenSet = false;
131
133 bool m_modesHasBeenSet = false;
134
135 Aws::String m_cacheNamespace;
136 bool m_cacheNamespaceHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CodeBuild
141} // namespace Aws
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEBUILD_API ProjectCache()=default
const Aws::String & GetCacheNamespace() const
ProjectCache & WithModes(ModesT &&value)
ProjectCache & WithLocation(LocationT &&value)
const Aws::Vector< CacheMode > & GetModes() const
const Aws::String & GetLocation() const
ProjectCache & WithType(CacheType value)
AWS_CODEBUILD_API ProjectCache & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCacheNamespace(CacheNamespaceT &&value)
void SetLocation(LocationT &&value)
ProjectCache & AddModes(CacheMode value)
ProjectCache & WithCacheNamespace(CacheNamespaceT &&value)
AWS_CODEBUILD_API ProjectCache(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue