AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
49 inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
50 inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
51 inline LifecycleExecutionSnapshotResource& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
52 inline LifecycleExecutionSnapshotResource& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
53 inline LifecycleExecutionSnapshotResource& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
55
57
60 inline const LifecycleExecutionResourceState& GetState() const{ return m_state; }
61 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
62 inline void SetState(const LifecycleExecutionResourceState& value) { m_stateHasBeenSet = true; m_state = value; }
63 inline void SetState(LifecycleExecutionResourceState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
65 inline LifecycleExecutionSnapshotResource& WithState(LifecycleExecutionResourceState&& value) { SetState(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_snapshotId;
70 bool m_snapshotIdHasBeenSet = false;
71
73 bool m_stateHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace imagebuilder
78} // namespace Aws
LifecycleExecutionSnapshotResource & WithSnapshotId(Aws::String &&value)
LifecycleExecutionSnapshotResource & WithState(const LifecycleExecutionResourceState &value)
LifecycleExecutionSnapshotResource & WithState(LifecycleExecutionResourceState &&value)
LifecycleExecutionSnapshotResource & WithSnapshotId(const char *value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
LifecycleExecutionSnapshotResource & WithSnapshotId(const Aws::String &value)
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