AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchRestrictions.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CodeBuild
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CODEBUILD_API BatchRestrictions();
36 AWS_CODEBUILD_API BatchRestrictions(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetMaximumBuildsAllowed() const{ return m_maximumBuildsAllowed; }
46 inline bool MaximumBuildsAllowedHasBeenSet() const { return m_maximumBuildsAllowedHasBeenSet; }
47 inline void SetMaximumBuildsAllowed(int value) { m_maximumBuildsAllowedHasBeenSet = true; m_maximumBuildsAllowed = value; }
48 inline BatchRestrictions& WithMaximumBuildsAllowed(int value) { SetMaximumBuildsAllowed(value); return *this;}
50
52
59 inline const Aws::Vector<Aws::String>& GetComputeTypesAllowed() const{ return m_computeTypesAllowed; }
60 inline bool ComputeTypesAllowedHasBeenSet() const { return m_computeTypesAllowedHasBeenSet; }
61 inline void SetComputeTypesAllowed(const Aws::Vector<Aws::String>& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed = value; }
62 inline void SetComputeTypesAllowed(Aws::Vector<Aws::String>&& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed = std::move(value); }
65 inline BatchRestrictions& AddComputeTypesAllowed(const Aws::String& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(value); return *this; }
66 inline BatchRestrictions& AddComputeTypesAllowed(Aws::String&& value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(std::move(value)); return *this; }
67 inline BatchRestrictions& AddComputeTypesAllowed(const char* value) { m_computeTypesAllowedHasBeenSet = true; m_computeTypesAllowed.push_back(value); return *this; }
69 private:
70
71 int m_maximumBuildsAllowed;
72 bool m_maximumBuildsAllowedHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_computeTypesAllowed;
75 bool m_computeTypesAllowedHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeBuild
80} // namespace Aws
void SetComputeTypesAllowed(const Aws::Vector< Aws::String > &value)
BatchRestrictions & WithComputeTypesAllowed(const Aws::Vector< Aws::String > &value)
AWS_CODEBUILD_API BatchRestrictions(Aws::Utils::Json::JsonView jsonValue)
void SetComputeTypesAllowed(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetComputeTypesAllowed() const
BatchRestrictions & AddComputeTypesAllowed(const char *value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
BatchRestrictions & WithMaximumBuildsAllowed(int value)
BatchRestrictions & AddComputeTypesAllowed(const Aws::String &value)
BatchRestrictions & WithComputeTypesAllowed(Aws::Vector< Aws::String > &&value)
BatchRestrictions & AddComputeTypesAllowed(Aws::String &&value)
AWS_CODEBUILD_API BatchRestrictions & operator=(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