AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
LifecycleExecutionSnapshotResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/LifecycleExecutionResourceState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace imagebuilder {
21namespace Model {
22
30 public:
31 AWS_IMAGEBUILDER_API LifecycleExecutionSnapshotResource() = default;
34 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
41 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
42 template <typename SnapshotIdT = Aws::String>
43 void SetSnapshotId(SnapshotIdT&& value) {
44 m_snapshotIdHasBeenSet = true;
45 m_snapshotId = std::forward<SnapshotIdT>(value);
46 }
47 template <typename SnapshotIdT = Aws::String>
49 SetSnapshotId(std::forward<SnapshotIdT>(value));
50 return *this;
51 }
53
55
58 inline const LifecycleExecutionResourceState& GetState() const { return m_state; }
59 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
60 template <typename StateT = LifecycleExecutionResourceState>
61 void SetState(StateT&& value) {
62 m_stateHasBeenSet = true;
63 m_state = std::forward<StateT>(value);
64 }
65 template <typename StateT = LifecycleExecutionResourceState>
67 SetState(std::forward<StateT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_snapshotId;
73
75 bool m_snapshotIdHasBeenSet = false;
76 bool m_stateHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace imagebuilder
81} // namespace Aws
LifecycleExecutionSnapshotResource & WithSnapshotId(SnapshotIdT &&value)
AWS_IMAGEBUILDER_API LifecycleExecutionSnapshotResource()=default
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IMAGEBUILDER_API LifecycleExecutionSnapshotResource(Aws::Utils::Json::JsonView jsonValue)
AWS_IMAGEBUILDER_API LifecycleExecutionSnapshotResource & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue