use of com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.tags.TagsV4Request in project cloudbreak by hortonworks.
the class StackToStackV4RequestConverter method prepareTags.
private void prepareTags(Stack source, StackV4Request stackV2Request) {
try {
if (source.getTags() != null && source.getTags().getValue() != null) {
StackTags stackTags = source.getTags().get(StackTags.class);
if (stackTags.getUserDefinedTags() != null) {
TagsV4Request tags = new TagsV4Request();
tags.setApplication(null);
tags.setDefaults(null);
tags.setUserDefined(stackTags.getUserDefinedTags());
stackV2Request.setTags(tags);
}
}
} catch (IOException e) {
stackV2Request.setTags(null);
}
}
Aggregations