AWS SDK for C++  1.9.104
AWS SDK for C++
DeleteCanaryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Synthetics
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 "DeleteCanary"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
40  inline const Aws::String& GetName() const{ return m_name; }
41 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
61  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
75  inline DeleteCanaryRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
76 
82  inline DeleteCanaryRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
83 
89  inline DeleteCanaryRequest& WithName(const char* value) { SetName(value); return *this;}
90 
91  private:
92 
93  Aws::String m_name;
94  bool m_nameHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace Synthetics
99 } // namespace Aws
Aws::Synthetics::Model::DeleteCanaryRequest::DeleteCanaryRequest
DeleteCanaryRequest()
Aws::Synthetics::Model::DeleteCanaryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteCanaryRequest.h:30
Aws::Synthetics::Model::DeleteCanaryRequest::WithName
DeleteCanaryRequest & WithName(const Aws::String &value)
Definition: DeleteCanaryRequest.h:75
Aws::Synthetics::Model::DeleteCanaryRequest
Definition: DeleteCanaryRequest.h:22
Aws::Synthetics::Model::DeleteCanaryRequest::GetName
const Aws::String & GetName() const
Definition: DeleteCanaryRequest.h:40
AWS_SYNTHETICS_API
#define AWS_SYNTHETICS_API
Definition: Synthetics_EXPORTS.h:28
Aws::Synthetics::Model::DeleteCanaryRequest::SetName
void SetName(const char *value)
Definition: DeleteCanaryRequest.h:68
Aws::Synthetics::Model::DeleteCanaryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Synthetics::Model::DeleteCanaryRequest::WithName
DeleteCanaryRequest & WithName(Aws::String &&value)
Definition: DeleteCanaryRequest.h:82
AWSString.h
Aws::Synthetics::Model::DeleteCanaryRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DeleteCanaryRequest.h:47
SyntheticsRequest.h
Synthetics_EXPORTS.h
Aws::Synthetics::Model::DeleteCanaryRequest::WithName
DeleteCanaryRequest & WithName(const char *value)
Definition: DeleteCanaryRequest.h:89
Aws::Synthetics::Model::DeleteCanaryRequest::SetName
void SetName(Aws::String &&value)
Definition: DeleteCanaryRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::Synthetics::Model::DeleteCanaryRequest::SetName
void SetName(const Aws::String &value)
Definition: DeleteCanaryRequest.h:54
Aws::Synthetics::SyntheticsRequest
Definition: SyntheticsRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97