AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LifecycleExecutionSnapshotResource.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/imagebuilder/model/LifecycleExecutionResourceState.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 imagebuilder
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IMAGEBUILDER_API LifecycleExecutionSnapshotResource() = default;
39 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetSnapshotId() const { return m_snapshotId; }
47 inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
48 template<typename SnapshotIdT = Aws::String>
49 void SetSnapshotId(SnapshotIdT&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::forward<SnapshotIdT>(value); }
50 template<typename SnapshotIdT = Aws::String>
51 LifecycleExecutionSnapshotResource& WithSnapshotId(SnapshotIdT&& value) { SetSnapshotId(std::forward<SnapshotIdT>(value)); return *this;}
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) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
62 template<typename StateT = LifecycleExecutionResourceState>
63 LifecycleExecutionSnapshotResource& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
65 private:
66
67 Aws::String m_snapshotId;
68 bool m_snapshotIdHasBeenSet = false;
69
71 bool m_stateHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace imagebuilder
76} // 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