AWS SDK for C++  1.8.76
AWS SDK for C++
StopLoggingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudTrail
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "StopLogging"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
81  inline StopLoggingRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 
88  inline StopLoggingRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 
95  inline StopLoggingRequest& WithName(const char* value) { SetName(value); return *this;}
96 
97  private:
98 
99  Aws::String m_name;
100  bool m_nameHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace CloudTrail
105 } // namespace Aws
void SetName(const Aws::String &value)
StopLoggingRequest & WithName(const Aws::String &value)
StopLoggingRequest & WithName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
StopLoggingRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDTRAIL_API