AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ResourcePolicyLimitExceededException.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_SSM_API ResourcePolicyLimitExceededException() = default;
41
42
44
45 inline int GetLimit() const { return m_limit; }
46 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
47 inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
48 inline ResourcePolicyLimitExceededException& WithLimit(int value) { SetLimit(value); return *this;}
50
52
53 inline const Aws::String& GetLimitType() const { return m_limitType; }
54 inline bool LimitTypeHasBeenSet() const { return m_limitTypeHasBeenSet; }
55 template<typename LimitTypeT = Aws::String>
56 void SetLimitType(LimitTypeT&& value) { m_limitTypeHasBeenSet = true; m_limitType = std::forward<LimitTypeT>(value); }
57 template<typename LimitTypeT = Aws::String>
58 ResourcePolicyLimitExceededException& WithLimitType(LimitTypeT&& value) { SetLimitType(std::forward<LimitTypeT>(value)); return *this;}
60
62
63 inline const Aws::String& GetMessage() const { return m_message; }
64 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
65 template<typename MessageT = Aws::String>
66 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
67 template<typename MessageT = Aws::String>
68 ResourcePolicyLimitExceededException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
70 private:
71
72 int m_limit{0};
73 bool m_limitHasBeenSet = false;
74
75 Aws::String m_limitType;
76 bool m_limitTypeHasBeenSet = false;
77
78 Aws::String m_message;
79 bool m_messageHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace SSM
84} // namespace Aws
ResourcePolicyLimitExceededException & WithLimitType(LimitTypeT &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API ResourcePolicyLimitExceededException(Aws::Utils::Json::JsonView jsonValue)
ResourcePolicyLimitExceededException & WithMessage(MessageT &&value)
ResourcePolicyLimitExceededException & WithLimit(int value)
AWS_SSM_API ResourcePolicyLimitExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue