Generate SDK by new Generator
This commit is contained in:
@@ -25,17 +25,6 @@ AssumeRoleRequest::AssumeRoleRequest() :
|
||||
AssumeRoleRequest::~AssumeRoleRequest()
|
||||
{}
|
||||
|
||||
std::string AssumeRoleRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void AssumeRoleRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setCoreParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
std::string AssumeRoleRequest::getRoleSessionName()const
|
||||
{
|
||||
return roleSessionName_;
|
||||
@@ -47,17 +36,6 @@ void AssumeRoleRequest::setRoleSessionName(const std::string& roleSessionName)
|
||||
setCoreParameter("RoleSessionName", roleSessionName);
|
||||
}
|
||||
|
||||
long AssumeRoleRequest::getDurationSeconds()const
|
||||
{
|
||||
return durationSeconds_;
|
||||
}
|
||||
|
||||
void AssumeRoleRequest::setDurationSeconds(long durationSeconds)
|
||||
{
|
||||
durationSeconds_ = durationSeconds;
|
||||
setCoreParameter("DurationSeconds", std::to_string(durationSeconds));
|
||||
}
|
||||
|
||||
std::string AssumeRoleRequest::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
@@ -69,3 +47,25 @@ void AssumeRoleRequest::setPolicy(const std::string& policy)
|
||||
setCoreParameter("Policy", policy);
|
||||
}
|
||||
|
||||
std::string AssumeRoleRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
}
|
||||
|
||||
void AssumeRoleRequest::setRoleArn(const std::string& roleArn)
|
||||
{
|
||||
roleArn_ = roleArn;
|
||||
setCoreParameter("RoleArn", roleArn);
|
||||
}
|
||||
|
||||
long AssumeRoleRequest::getDurationSeconds()const
|
||||
{
|
||||
return durationSeconds_;
|
||||
}
|
||||
|
||||
void AssumeRoleRequest::setDurationSeconds(long durationSeconds)
|
||||
{
|
||||
durationSeconds_ = durationSeconds;
|
||||
setCoreParameter("DurationSeconds", std::to_string(durationSeconds));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,13 +35,9 @@ AssumeRoleResult::~AssumeRoleResult()
|
||||
|
||||
void AssumeRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto credentialsNode = value["Credentials"];
|
||||
if(!credentialsNode["SecurityToken"].isNull())
|
||||
|
||||
@@ -25,6 +25,17 @@ AssumeRoleWithSAMLRequest::AssumeRoleWithSAMLRequest() :
|
||||
AssumeRoleWithSAMLRequest::~AssumeRoleWithSAMLRequest()
|
||||
{}
|
||||
|
||||
std::string AssumeRoleWithSAMLRequest::getSAMLAssertion()const
|
||||
{
|
||||
return sAMLAssertion_;
|
||||
}
|
||||
|
||||
void AssumeRoleWithSAMLRequest::setSAMLAssertion(const std::string& sAMLAssertion)
|
||||
{
|
||||
sAMLAssertion_ = sAMLAssertion;
|
||||
setCoreParameter("SAMLAssertion", sAMLAssertion);
|
||||
}
|
||||
|
||||
std::string AssumeRoleWithSAMLRequest::getRoleArn()const
|
||||
{
|
||||
return roleArn_;
|
||||
@@ -47,17 +58,6 @@ void AssumeRoleWithSAMLRequest::setSAMLProviderArn(const std::string& sAMLProvid
|
||||
setCoreParameter("SAMLProviderArn", sAMLProviderArn);
|
||||
}
|
||||
|
||||
std::string AssumeRoleWithSAMLRequest::getSAMLAssertion()const
|
||||
{
|
||||
return sAMLAssertion_;
|
||||
}
|
||||
|
||||
void AssumeRoleWithSAMLRequest::setSAMLAssertion(const std::string& sAMLAssertion)
|
||||
{
|
||||
sAMLAssertion_ = sAMLAssertion;
|
||||
setCoreParameter("SAMLAssertion", sAMLAssertion);
|
||||
}
|
||||
|
||||
long AssumeRoleWithSAMLRequest::getDurationSeconds()const
|
||||
{
|
||||
return durationSeconds_;
|
||||
|
||||
@@ -35,13 +35,9 @@ AssumeRoleWithSAMLResult::~AssumeRoleWithSAMLResult()
|
||||
|
||||
void AssumeRoleWithSAMLResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto credentialsNode = value["Credentials"];
|
||||
if(!credentialsNode["SecurityToken"].isNull())
|
||||
|
||||
@@ -35,13 +35,9 @@ GetCallerIdentityResult::~GetCallerIdentityResult()
|
||||
|
||||
void GetCallerIdentityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::CharReaderBuilder builder;
|
||||
Json::CharReader *reader = builder.newCharReader();
|
||||
Json::Value *val;
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
JSONCPP_STRING *errs;
|
||||
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
|
||||
value = *val;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AccountId"].isNull())
|
||||
accountId_ = value["AccountId"].asString();
|
||||
|
||||
Reference in New Issue
Block a user