Skip to content

Aws::Ec2::model::Snapshot: m_startTime double -> Aws::String #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions aws-cpp-sdk-ec2/include/aws/ec2/model/Snapshot.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,17 +216,17 @@ namespace Model
/**
* <p>The time stamp when the snapshot was initiated.</p>
*/
inline double GetStartTime() const{ return m_startTime; }
inline const Aws::String& GetStartTime() const{ return m_startTime; }

/**
* <p>The time stamp when the snapshot was initiated.</p>
*/
inline void SetStartTime(double value) { m_startTimeHasBeenSet = true; m_startTime = value; }
inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }

/**
* <p>The time stamp when the snapshot was initiated.</p>
*/
inline Snapshot& WithStartTime(double value) { SetStartTime(value); return *this;}
inline Snapshot& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}

/**
* <p>The progress of the snapshot, as a percentage.</p>
Expand Down Expand Up @@ -590,7 +590,7 @@ namespace Model
bool m_stateHasBeenSet;
Aws::String m_stateMessage;
bool m_stateMessageHasBeenSet;
double m_startTime;
Aws::String m_startTime;
bool m_startTimeHasBeenSet;
Aws::String m_progress;
bool m_progressHasBeenSet;
Expand Down
8 changes: 3 additions & 5 deletions aws-cpp-sdk-ec2/source/model/Snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Snapshot::Snapshot() :
m_volumeIdHasBeenSet(false),
m_stateHasBeenSet(false),
m_stateMessageHasBeenSet(false),
m_startTime(0.0),
m_startTimeHasBeenSet(false),
m_progressHasBeenSet(false),
m_ownerIdHasBeenSet(false),
Expand All @@ -50,7 +49,6 @@ Snapshot::Snapshot(const XmlNode& xmlNode) :
m_volumeIdHasBeenSet(false),
m_stateHasBeenSet(false),
m_stateMessageHasBeenSet(false),
m_startTime(0.0),
m_startTimeHasBeenSet(false),
m_progressHasBeenSet(false),
m_ownerIdHasBeenSet(false),
Expand Down Expand Up @@ -101,7 +99,7 @@ Snapshot& Snapshot::operator =(const XmlNode& xmlNode)
XmlNode startTimeNode = resultNode.FirstChild("startTime");
if(!startTimeNode.IsNull())
{
m_startTime = StringUtils::ConvertToDouble(StringUtils::Trim(startTimeNode.GetText().c_str()).c_str());
m_startTime = StringUtils::Trim(startTimeNode.GetText().c_str()).c_str();
m_startTimeHasBeenSet = true;
}
XmlNode progressNode = resultNode.FirstChild("progress");
Expand Down Expand Up @@ -189,7 +187,7 @@ void Snapshot::OutputToStream(Aws::OStream& oStream, const char* location, unsig
}
if(m_startTimeHasBeenSet)
{
oStream << location << index << locationValue << ".StartTime=" << StringUtils::URLEncode(m_startTime) << "&";
oStream << location << index << locationValue << ".StartTime=" << StringUtils::URLEncode(m_startTime.c_str()) << "&";
}
if(m_progressHasBeenSet)
{
Expand Down Expand Up @@ -261,7 +259,7 @@ void Snapshot::OutputToStream(Aws::OStream& oStream, const char* location) const
}
if(m_startTimeHasBeenSet)
{
oStream << location << ".StartTime=" << StringUtils::URLEncode(m_startTime) << "&";
oStream << location << ".StartTime=" << StringUtils::URLEncode(m_startTime.c_str()) << "&";
}
if(m_progressHasBeenSet)
{
Expand Down