AWS SDK for C++  1.9.123
AWS SDK for C++
PublishFunction2020_05_31Request.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudFront
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "PublishFunction"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
45  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 
50  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 
55  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 
60  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 
65  inline PublishFunction2020_05_31Request& WithName(const Aws::String& value) { SetName(value); return *this;}
66 
70  inline PublishFunction2020_05_31Request& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 
75  inline PublishFunction2020_05_31Request& WithName(const char* value) { SetName(value); return *this;}
76 
77 
82  inline const Aws::String& GetIfMatch() const{ return m_ifMatch; }
83 
88  inline bool IfMatchHasBeenSet() const { return m_ifMatchHasBeenSet; }
89 
94  inline void SetIfMatch(const Aws::String& value) { m_ifMatchHasBeenSet = true; m_ifMatch = value; }
95 
100  inline void SetIfMatch(Aws::String&& value) { m_ifMatchHasBeenSet = true; m_ifMatch = std::move(value); }
101 
106  inline void SetIfMatch(const char* value) { m_ifMatchHasBeenSet = true; m_ifMatch.assign(value); }
107 
112  inline PublishFunction2020_05_31Request& WithIfMatch(const Aws::String& value) { SetIfMatch(value); return *this;}
113 
118  inline PublishFunction2020_05_31Request& WithIfMatch(Aws::String&& value) { SetIfMatch(std::move(value)); return *this;}
119 
124  inline PublishFunction2020_05_31Request& WithIfMatch(const char* value) { SetIfMatch(value); return *this;}
125 
126  private:
127 
128  Aws::String m_name;
129  bool m_nameHasBeenSet;
130 
131  Aws::String m_ifMatch;
132  bool m_ifMatchHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace CloudFront
137 } // namespace Aws
Aws::CloudFront::Model::PublishFunction2020_05_31Request::IfMatchHasBeenSet
bool IfMatchHasBeenSet() const
Definition: PublishFunction2020_05_31Request.h:88
Aws::CloudFront::Model::PublishFunction2020_05_31Request::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PublishFunction2020_05_31Request.h:45
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CloudFrontRequest.h
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SetName
void SetName(const Aws::String &value)
Definition: PublishFunction2020_05_31Request.h:50
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SetIfMatch
void SetIfMatch(const Aws::String &value)
Definition: PublishFunction2020_05_31Request.h:94
Aws::CloudFront::Model::PublishFunction2020_05_31Request::WithIfMatch
PublishFunction2020_05_31Request & WithIfMatch(const char *value)
Definition: PublishFunction2020_05_31Request.h:124
Aws::CloudFront::Model::PublishFunction2020_05_31Request::WithName
PublishFunction2020_05_31Request & WithName(Aws::String &&value)
Definition: PublishFunction2020_05_31Request.h:70
Aws::CloudFront::Model::PublishFunction2020_05_31Request::WithName
PublishFunction2020_05_31Request & WithName(const char *value)
Definition: PublishFunction2020_05_31Request.h:75
Aws::CloudFront::Model::PublishFunction2020_05_31Request::WithName
PublishFunction2020_05_31Request & WithName(const Aws::String &value)
Definition: PublishFunction2020_05_31Request.h:65
Aws::CloudFront::Model::PublishFunction2020_05_31Request::WithIfMatch
PublishFunction2020_05_31Request & WithIfMatch(Aws::String &&value)
Definition: PublishFunction2020_05_31Request.h:118
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SetIfMatch
void SetIfMatch(const char *value)
Definition: PublishFunction2020_05_31Request.h:106
Aws::CloudFront::Model::PublishFunction2020_05_31Request::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::CloudFront::CloudFrontRequest
Definition: CloudFrontRequest.h:17
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SerializePayload
Aws::String SerializePayload() const override
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::PublishFunction2020_05_31Request::WithIfMatch
PublishFunction2020_05_31Request & WithIfMatch(const Aws::String &value)
Definition: PublishFunction2020_05_31Request.h:112
Aws::CloudFront::Model::PublishFunction2020_05_31Request::GetIfMatch
const Aws::String & GetIfMatch() const
Definition: PublishFunction2020_05_31Request.h:82
CloudFront_EXPORTS.h
Aws::CloudFront::Model::PublishFunction2020_05_31Request::GetName
const Aws::String & GetName() const
Definition: PublishFunction2020_05_31Request.h:40
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SetIfMatch
void SetIfMatch(Aws::String &&value)
Definition: PublishFunction2020_05_31Request.h:100
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SetName
void SetName(const char *value)
Definition: PublishFunction2020_05_31Request.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::PublishFunction2020_05_31Request
Definition: PublishFunction2020_05_31Request.h:22
Aws::CloudFront::Model::PublishFunction2020_05_31Request::PublishFunction2020_05_31Request
PublishFunction2020_05_31Request()
Aws::CloudFront::Model::PublishFunction2020_05_31Request::SetName
void SetName(Aws::String &&value)
Definition: PublishFunction2020_05_31Request.h:55
Aws::CloudFront::Model::PublishFunction2020_05_31Request::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PublishFunction2020_05_31Request.h:30