AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TargetPreview.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SSM {
20namespace Model {
21
29 public:
30 AWS_SSM_API TargetPreview() = default;
34
36
40 inline int GetCount() const { return m_count; }
41 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
42 inline void SetCount(int value) {
43 m_countHasBeenSet = true;
44 m_count = value;
45 }
46 inline TargetPreview& WithCount(int value) {
47 SetCount(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTargetType() const { return m_targetType; }
57 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
58 template <typename TargetTypeT = Aws::String>
59 void SetTargetType(TargetTypeT&& value) {
60 m_targetTypeHasBeenSet = true;
61 m_targetType = std::forward<TargetTypeT>(value);
62 }
63 template <typename TargetTypeT = Aws::String>
64 TargetPreview& WithTargetType(TargetTypeT&& value) {
65 SetTargetType(std::forward<TargetTypeT>(value));
66 return *this;
67 }
69 private:
70 int m_count{0};
71
72 Aws::String m_targetType;
73 bool m_countHasBeenSet = false;
74 bool m_targetTypeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SSM
79} // namespace Aws
TargetPreview & WithCount(int value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetType(TargetTypeT &&value)
TargetPreview & WithTargetType(TargetTypeT &&value)
AWS_SSM_API TargetPreview & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API TargetPreview(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API TargetPreview()=default
const Aws::String & GetTargetType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue