1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/lambda/Lambda_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20   class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace Lambda
24 {
25 namespace Model
26 {
27   class AWS_LAMBDA_API GetLayerVersionPolicyResult
28   {
29   public:
30     GetLayerVersionPolicyResult();
31     GetLayerVersionPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
32     GetLayerVersionPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33 
34 
35     /**
36      * <p>The policy document.</p>
37      */
GetPolicy()38     inline const Aws::String& GetPolicy() const{ return m_policy; }
39 
40     /**
41      * <p>The policy document.</p>
42      */
SetPolicy(const Aws::String & value)43     inline void SetPolicy(const Aws::String& value) { m_policy = value; }
44 
45     /**
46      * <p>The policy document.</p>
47      */
SetPolicy(Aws::String && value)48     inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
49 
50     /**
51      * <p>The policy document.</p>
52      */
SetPolicy(const char * value)53     inline void SetPolicy(const char* value) { m_policy.assign(value); }
54 
55     /**
56      * <p>The policy document.</p>
57      */
WithPolicy(const Aws::String & value)58     inline GetLayerVersionPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
59 
60     /**
61      * <p>The policy document.</p>
62      */
WithPolicy(Aws::String && value)63     inline GetLayerVersionPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
64 
65     /**
66      * <p>The policy document.</p>
67      */
WithPolicy(const char * value)68     inline GetLayerVersionPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
69 
70 
71     /**
72      * <p>A unique identifier for the current revision of the policy.</p>
73      */
GetRevisionId()74     inline const Aws::String& GetRevisionId() const{ return m_revisionId; }
75 
76     /**
77      * <p>A unique identifier for the current revision of the policy.</p>
78      */
SetRevisionId(const Aws::String & value)79     inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; }
80 
81     /**
82      * <p>A unique identifier for the current revision of the policy.</p>
83      */
SetRevisionId(Aws::String && value)84     inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); }
85 
86     /**
87      * <p>A unique identifier for the current revision of the policy.</p>
88      */
SetRevisionId(const char * value)89     inline void SetRevisionId(const char* value) { m_revisionId.assign(value); }
90 
91     /**
92      * <p>A unique identifier for the current revision of the policy.</p>
93      */
WithRevisionId(const Aws::String & value)94     inline GetLayerVersionPolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;}
95 
96     /**
97      * <p>A unique identifier for the current revision of the policy.</p>
98      */
WithRevisionId(Aws::String && value)99     inline GetLayerVersionPolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;}
100 
101     /**
102      * <p>A unique identifier for the current revision of the policy.</p>
103      */
WithRevisionId(const char * value)104     inline GetLayerVersionPolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;}
105 
106   private:
107 
108     Aws::String m_policy;
109 
110     Aws::String m_revisionId;
111   };
112 
113 } // namespace Model
114 } // namespace Lambda
115 } // namespace Aws
116