AWS SDK for C++  1.9.159
AWS SDK for C++
StartMetricStreamsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudWatch
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "StartMetricStreams"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline const Aws::Vector<Aws::String>& GetNames() const{ return m_names; }
47 
54  inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
55 
62  inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
63 
70  inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
71 
78  inline StartMetricStreamsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
79 
86  inline StartMetricStreamsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
87 
94  inline StartMetricStreamsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
95 
102  inline StartMetricStreamsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
103 
110  inline StartMetricStreamsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
111 
112  private:
113 
114  Aws::Vector<Aws::String> m_names;
115  bool m_namesHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace CloudWatch
120 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
AWS_CLOUDWATCH_API
#define AWS_CLOUDWATCH_API
Definition: CloudWatch_EXPORTS.h:28
Aws::CloudWatch::Model::StartMetricStreamsRequest::SetNames
void SetNames(Aws::Vector< Aws::String > &&value)
Definition: StartMetricStreamsRequest.h:70
Aws::CloudWatch::Model::StartMetricStreamsRequest::NamesHasBeenSet
bool NamesHasBeenSet() const
Definition: StartMetricStreamsRequest.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudWatch::Model::StartMetricStreamsRequest::AddNames
StartMetricStreamsRequest & AddNames(const Aws::String &value)
Definition: StartMetricStreamsRequest.h:94
Aws::CloudWatch::Model::StartMetricStreamsRequest::GetNames
const Aws::Vector< Aws::String > & GetNames() const
Definition: StartMetricStreamsRequest.h:46
Aws::CloudWatch::Model::StartMetricStreamsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::CloudWatch::Model::StartMetricStreamsRequest::WithNames
StartMetricStreamsRequest & WithNames(const Aws::Vector< Aws::String > &value)
Definition: StartMetricStreamsRequest.h:78
Aws::CloudWatch::CloudWatchRequest
Definition: CloudWatchRequest.h:17
Aws::CloudWatch::Model::StartMetricStreamsRequest::AddNames
StartMetricStreamsRequest & AddNames(const char *value)
Definition: StartMetricStreamsRequest.h:110
Aws::CloudWatch::Model::StartMetricStreamsRequest::AddNames
StartMetricStreamsRequest & AddNames(Aws::String &&value)
Definition: StartMetricStreamsRequest.h:102
Aws::CloudWatch::Model::StartMetricStreamsRequest::StartMetricStreamsRequest
StartMetricStreamsRequest()
AWSString.h
CloudWatchRequest.h
Aws::CloudWatch::Model::StartMetricStreamsRequest::SetNames
void SetNames(const Aws::Vector< Aws::String > &value)
Definition: StartMetricStreamsRequest.h:62
CloudWatch_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatch::Model::StartMetricStreamsRequest
Definition: StartMetricStreamsRequest.h:23
Aws::CloudWatch::Model::StartMetricStreamsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatch::Model::StartMetricStreamsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartMetricStreamsRequest.h:31
Aws::CloudWatch::Model::StartMetricStreamsRequest::WithNames
StartMetricStreamsRequest & WithNames(Aws::Vector< Aws::String > &&value)
Definition: StartMetricStreamsRequest.h:86