AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const CacheType& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const CacheType& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(CacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline ProjectCache& WithType(const CacheType& value) { SetType(value); return *this;}
58 inline ProjectCache& WithType(CacheType&& value) { SetType(std::move(value)); return *this;}
60
62
67 inline const Aws::String& GetLocation() const{ return m_location; }
68 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
69 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
70 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
71 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
72 inline ProjectCache& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
73 inline ProjectCache& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
74 inline ProjectCache& WithLocation(const char* value) { SetLocation(value); return *this;}
76
78
105 inline const Aws::Vector<CacheMode>& GetModes() const{ return m_modes; }
106 inline bool ModesHasBeenSet() const { return m_modesHasBeenSet; }
107 inline void SetModes(const Aws::Vector<CacheMode>& value) { m_modesHasBeenSet = true; m_modes = value; }
108 inline void SetModes(Aws::Vector<CacheMode>&& value) { m_modesHasBeenSet = true; m_modes = std::move(value); }
109 inline ProjectCache& WithModes(const Aws::Vector<CacheMode>& value) { SetModes(value); return *this;}
110 inline ProjectCache& WithModes(Aws::Vector<CacheMode>&& value) { SetModes(std::move(value)); return *this;}
111 inline ProjectCache& AddModes(const CacheMode& value) { m_modesHasBeenSet = true; m_modes.push_back(value); return *this; }
112 inline ProjectCache& AddModes(CacheMode&& value) { m_modesHasBeenSet = true; m_modes.push_back(std::move(value)); return *this; }
114 private:
115
116 CacheType m_type;
117 bool m_typeHasBeenSet = false;
118
119 Aws::String m_location;
120 bool m_locationHasBeenSet = false;
121
123 bool m_modesHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CodeBuild
128} // namespace Aws
ProjectCache & WithLocation(Aws::String &&value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectCache & WithModes(const Aws::Vector< CacheMode > &value)
ProjectCache & WithType(CacheType &&value)
void SetLocation(const char *value)
void SetLocation(Aws::String &&value)
void SetType(const CacheType &value)
const Aws::Vector< CacheMode > & GetModes() const
const Aws::String & GetLocation() const
ProjectCache & WithType(const CacheType &value)
ProjectCache & AddModes(CacheMode &&value)
ProjectCache & WithLocation(const Aws::String &value)
const CacheType & GetType() const
ProjectCache & AddModes(const CacheMode &value)
AWS_CODEBUILD_API ProjectCache & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetModes(Aws::Vector< CacheMode > &&value)
void SetType(CacheType &&value)
void SetLocation(const Aws::String &value)
void SetModes(const Aws::Vector< CacheMode > &value)
ProjectCache & WithModes(Aws::Vector< CacheMode > &&value)
ProjectCache & WithLocation(const char *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