AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RestrictedPeriods.h
1
6#pragma once
7#include <aws/connectcampaignsv2/ConnectCampaignsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/connectcampaignsv2/model/RestrictedPeriod.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 ConnectCampaignsV2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods() = default;
36 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::Vector<RestrictedPeriod>& GetRestrictedPeriodList() const { return m_restrictedPeriodList; }
44 inline bool RestrictedPeriodListHasBeenSet() const { return m_restrictedPeriodListHasBeenSet; }
45 template<typename RestrictedPeriodListT = Aws::Vector<RestrictedPeriod>>
46 void SetRestrictedPeriodList(RestrictedPeriodListT&& value) { m_restrictedPeriodListHasBeenSet = true; m_restrictedPeriodList = std::forward<RestrictedPeriodListT>(value); }
47 template<typename RestrictedPeriodListT = Aws::Vector<RestrictedPeriod>>
48 RestrictedPeriods& WithRestrictedPeriodList(RestrictedPeriodListT&& value) { SetRestrictedPeriodList(std::forward<RestrictedPeriodListT>(value)); return *this;}
49 template<typename RestrictedPeriodListT = RestrictedPeriod>
50 RestrictedPeriods& AddRestrictedPeriodList(RestrictedPeriodListT&& value) { m_restrictedPeriodListHasBeenSet = true; m_restrictedPeriodList.emplace_back(std::forward<RestrictedPeriodListT>(value)); return *this; }
52 private:
53
54 Aws::Vector<RestrictedPeriod> m_restrictedPeriodList;
55 bool m_restrictedPeriodListHasBeenSet = false;
56 };
57
58} // namespace Model
59} // namespace ConnectCampaignsV2
60} // namespace Aws
void SetRestrictedPeriodList(RestrictedPeriodListT &&value)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods & operator=(Aws::Utils::Json::JsonView jsonValue)
RestrictedPeriods & WithRestrictedPeriodList(RestrictedPeriodListT &&value)
AWS_CONNECTCAMPAIGNSV2_API RestrictedPeriods()=default
const Aws::Vector< RestrictedPeriod > & GetRestrictedPeriodList() const
RestrictedPeriods & AddRestrictedPeriodList(RestrictedPeriodListT &&value)
AWS_CONNECTCAMPAIGNSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue