AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Policy.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs
22{
23namespace Model
24{
25
32 class Policy
33 {
34 public:
35 AWS_CLOUDWATCHLOGS_API Policy();
36 AWS_CLOUDWATCHLOGS_API Policy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Policy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDeliveryDestinationPolicy() const{ return m_deliveryDestinationPolicy; }
46 inline bool DeliveryDestinationPolicyHasBeenSet() const { return m_deliveryDestinationPolicyHasBeenSet; }
47 inline void SetDeliveryDestinationPolicy(const Aws::String& value) { m_deliveryDestinationPolicyHasBeenSet = true; m_deliveryDestinationPolicy = value; }
48 inline void SetDeliveryDestinationPolicy(Aws::String&& value) { m_deliveryDestinationPolicyHasBeenSet = true; m_deliveryDestinationPolicy = std::move(value); }
49 inline void SetDeliveryDestinationPolicy(const char* value) { m_deliveryDestinationPolicyHasBeenSet = true; m_deliveryDestinationPolicy.assign(value); }
51 inline Policy& WithDeliveryDestinationPolicy(Aws::String&& value) { SetDeliveryDestinationPolicy(std::move(value)); return *this;}
52 inline Policy& WithDeliveryDestinationPolicy(const char* value) { SetDeliveryDestinationPolicy(value); return *this;}
54 private:
55
56 Aws::String m_deliveryDestinationPolicy;
57 bool m_deliveryDestinationPolicyHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace CloudWatchLogs
62} // namespace Aws
Policy & WithDeliveryDestinationPolicy(const Aws::String &value)
Definition Policy.h:50
AWS_CLOUDWATCHLOGS_API Policy(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDeliveryDestinationPolicy() const
Definition Policy.h:45
void SetDeliveryDestinationPolicy(Aws::String &&value)
Definition Policy.h:48
Policy & WithDeliveryDestinationPolicy(Aws::String &&value)
Definition Policy.h:51
AWS_CLOUDWATCHLOGS_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeliveryDestinationPolicy(const Aws::String &value)
Definition Policy.h:47
void SetDeliveryDestinationPolicy(const char *value)
Definition Policy.h:49
Policy & WithDeliveryDestinationPolicy(const char *value)
Definition Policy.h:52
bool DeliveryDestinationPolicyHasBeenSet() const
Definition Policy.h:46
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API Policy()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue