AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutSinkPolicyRequest.h
1
6#pragma once
7#include <aws/oam/OAM_EXPORTS.h>
8#include <aws/oam/OAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace OAM
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_OAM_API PutSinkPolicyRequest();
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "PutSinkPolicy"; }
31
32 AWS_OAM_API Aws::String SerializePayload() const override;
33
34
36
43 inline const Aws::String& GetPolicy() const{ return m_policy; }
44 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
45 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
46 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
47 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
48 inline PutSinkPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
49 inline PutSinkPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
50 inline PutSinkPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
52
54
57 inline const Aws::String& GetSinkIdentifier() const{ return m_sinkIdentifier; }
58 inline bool SinkIdentifierHasBeenSet() const { return m_sinkIdentifierHasBeenSet; }
59 inline void SetSinkIdentifier(const Aws::String& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = value; }
60 inline void SetSinkIdentifier(Aws::String&& value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier = std::move(value); }
61 inline void SetSinkIdentifier(const char* value) { m_sinkIdentifierHasBeenSet = true; m_sinkIdentifier.assign(value); }
62 inline PutSinkPolicyRequest& WithSinkIdentifier(const Aws::String& value) { SetSinkIdentifier(value); return *this;}
63 inline PutSinkPolicyRequest& WithSinkIdentifier(Aws::String&& value) { SetSinkIdentifier(std::move(value)); return *this;}
64 inline PutSinkPolicyRequest& WithSinkIdentifier(const char* value) { SetSinkIdentifier(value); return *this;}
66 private:
67
68 Aws::String m_policy;
69 bool m_policyHasBeenSet = false;
70
71 Aws::String m_sinkIdentifier;
72 bool m_sinkIdentifierHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace OAM
77} // namespace Aws
PutSinkPolicyRequest & WithPolicy(Aws::String &&value)
PutSinkPolicyRequest & WithSinkIdentifier(const Aws::String &value)
PutSinkPolicyRequest & WithPolicy(const Aws::String &value)
PutSinkPolicyRequest & WithSinkIdentifier(const char *value)
void SetSinkIdentifier(Aws::String &&value)
void SetPolicy(const Aws::String &value)
PutSinkPolicyRequest & WithSinkIdentifier(Aws::String &&value)
PutSinkPolicyRequest & WithPolicy(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetSinkIdentifier() const
AWS_OAM_API Aws::String SerializePayload() const override
void SetSinkIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String